?
avatar dnldrws
dnldrws
11 Aug 2017

Hi,
i want to show an input field only if an checkbox is unchecked.

Steps to reproduce the issue

<form>
    <fieldset>
        <field name="rmvFoo" type="checkbox"/>
        <field name="Foo" type="text" showon="rmvFoo:0"/>
    </fieldset>
</form>

Expected result

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.

Actual result

The input field never appears.

avatar dnldrws dnldrws - open - 11 Aug 2017
avatar joomla-cms-bot joomla-cms-bot - change - 11 Aug 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 11 Aug 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 11 Aug 2017
Category Fields
avatar tonypartridge
tonypartridge - comment - 15 Aug 2017

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

avatar franz-wohlkoenig franz-wohlkoenig - change - 16 Aug 2017
Status New Information Required
avatar dnldrws
dnldrws - comment - 17 Aug 2017

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)


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17486.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Aug 2017

@dnldrws it means to wait on Answer of @GeraintEdwards

avatar dnldrws
dnldrws - comment - 17 Aug 2017

@franz-wohlkoenig okay. thanks!

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Aug 2017

@dnldrws thats how i understand the Comment of @tonypartridge.

avatar dnldrws
dnldrws - comment - 17 Aug 2017

@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.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Aug 2017

@tonypartridge can you please answer above Comment?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17486.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 22 Oct 2017

Reminder for @tonypartridge.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17486.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Dec 2017

If this Issue get no Response, it will be closed at 26th January 2018.

avatar tonypartridge
tonypartridge - comment - 26 Dec 2017

I’ve asked @GeraintEdwards to try and take a look since he is doing a rewrite for the show on code

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Dec 2017

thanks @tonypartridge, Issue stay open.

avatar franz-wohlkoenig franz-wohlkoenig - change - 27 Jan 2018
Status Information Required Discussion
avatar brianteeman brianteeman - change - 23 Mar 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-03-23 23:07:44
Closed_By brianteeman
avatar brianteeman
brianteeman - comment - 23 Mar 2018

I am going to close this. @tonypartridge is correct. If there is no input then the showon functionality won't know what to do.

avatar brianteeman brianteeman - close - 23 Mar 2018

Add a Comment

Login with GitHub to post a comment