To show a field when another field (e.g. foo) has been selected (when that other field is not empty), use showon="foo!:" (without a value specified).
This is described in the documentation here:
https://docs.joomla.org/Form_field#Common_attributes
and here:
https://help.joomla.org/proxy?keyref=Help50:Fields:_Edit&lang=en#Options
I should be able to save the field options.
Upon saving, I get this error:
"Invalid field: Showon Attribute"
It seems like the form is expecting something after the colon, eg "foo!:2" (for saying when it's NOT 2), but as documented, the syntax for NOT EMPTY is simply "foo!:" and should work.
Now it no longer works.
5.0.0-beta1
This works correctly in the current and latest version Joomla 4.
It broke in Joomla 5.
| Labels |
Added:
No Code Attached Yet
|
||
| Title |
|
||||||
Yes it is definitely related
| Labels |
Added:
Release Blocker
|
||
Sure I'll check it ASAP
| Labels |
Added:
bug
|
||
There are other problems with that rule, too, see my comment here: #41460 (comment) .
| Status | New | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-09-25 15:01:10 |
| Closed_By | ⇒ | richard67 |
| Labels |
Removed:
Release Blocker
|
||
Could be caused by #41460 . @MagnusSinger Could you check. Thanks in advance.