Hi,
i want to show an input field only if an checkbox is unchecked.
<form>
<fieldset>
<field name="rmvFoo" type="checkbox"/>
<field name="Foo" type="text" showon="rmvFoo:0"/>
</fieldset>
</form>
According to the documentation showon="checkboxname:0"
or showon="checkboxname!:1"
should work (as far as I understand it).
But it doesn't.
In 3.6.5 I used showon="checkboxname"
to do it, but this also won't work in 3.7.x.
The input field never appears.
Labels |
Added:
?
|
Category | ⇒ | Fields |
Status | New | ⇒ | Information Required |
Does the change of status to "Information Required" mean that the information I provided is insufficient?
If so, what else do you need? Or does it mean something else? (sorry, it's my first use of the issue tracker)
@dnldrws it means to wait on Answer of @GeraintEdwards
@franz-wohlkoenig okay. thanks!
@dnldrws thats how i understand the Comment of @tonypartridge.
@tonypartridge I'm not sure if you are right.
Isn't the PR of @GeraintEdwards about enabling the showon
attribute for <option></option>
?
And my issue is that a checkbox does not work as the target of showon
.
@tonypartridge can you please answer above Comment?
Reminder for @tonypartridge.
If this Issue get no Response, it will be closed at 26th January 2018.
I’ve asked @GeraintEdwards to try and take a look since he is doing a rewrite for the show on code
thanks @tonypartridge, Issue stay open.
Status | Information Required | ⇒ | Discussion |
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-03-23 23:07:44 |
Closed_By | ⇒ | brianteeman |
I am going to close this. @tonypartridge is correct. If there is no input then the showon functionality won't know what to do.
No, I don't believe this will work since the checkbox isn't an input value. It's a selection.
It would fall under the same issue as select lists. Which @GeraintEdwards has done a PR for:
#17212