Page MenuHomePhabricator

"show on select" broken for radiobutton input types
Closed, ResolvedPublic

Description

Author: akozak

Description:
The "show on select" option for {{{field}}} doesn't work when the "input type" is set to radiobutton. This bug is present in Semantic Forms 1.9.1.

Example: http://scratchpad.referata.com/wiki/Special:FormEdit?form=Radiobuttons&target=test


Version: unspecified
Severity: normal

Details

Reference
bz24008

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:08 PM
bzimport set Reference to bz24008.

I believe this is now fixed in version 2.0 - setting to "fixed".

I have discovered this bug again. I was able to get it to work by duplicating the radio button field twice:

{{{field | uploadoredit | class=uploadoredit | input type=radiobutton | values=upload, edit | default=edit | show on select=upload=>uploadfield;}}} <!-- Must duplicate this line to make buggy show on select hiding work. Workaround discovered by accident when accidentally pasting form code twice in form edit page. I don't know why it works. --><nowiki />
{{{field | uploadoredit | class=uploadoredit | input type=radiobutton | values=upload, edit | default=edit | show on select=upload=>uploadfield;}}} <!-- Must duplicate this line to make buggy show on select hiding work. Workaround discovered by accident when accidentally pasting form code twice in form edit page. I don't know why it works. --><nowiki />

Where's an example of this not working?

I haven't been able to reproduce this again. I'll reopen it if I can get it to trigger again. Until then, apologies, I should have set up a demo for it before I posted it. Right now I'm thinking maybe the JS for it didn't load properly and was simply cached until I refreshed it.