Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JS not triggering with radiobutton button group=yes #1553

Closed
kirancheema opened this issue Oct 13, 2015 · 6 comments
Closed

JS not triggering with radiobutton button group=yes #1553

kirancheema opened this issue Oct 13, 2015 · 6 comments

Comments

@kirancheema
Copy link

Hi don't know if this is related to previous ticket or not #1224?

using Joomla 3.4.3 Fabrik 3.3.3

Created form with yes/no radio buttons
Button Group = yes

Javascript -> onclick if element = no then hide a textbox

have tried using the predefined actions and attempted to use my own JS

This work fine until you look at the page in Internet explorer
in IE 8/9& 11 it doesn't work have tried the onClick/change and select events

The only thing I can do is add something in the load event e.g. element.click(function(){})

If You switch button Group = OFF then that all works properly.
all the events are triggered.

is a real shame as I am forced to use the radio buttons to ensure compatibility... unless I'm doing something wrong?

@trob
Copy link

trob commented Oct 13, 2015

Can you please post in the forums?
Yes/no as button group with "onclick" hiding/showing an element is working fine (even in IE11).
Condition is on element value, so if element == 0
I don't think any issues with IE8/9 are supported.

@kirancheema
Copy link
Author

Thanks will post in forums as well.

The real issue was that everything works fine if button group = No but fails if button Group= Yes
In IE 8/9 and 11

@Sophist-UK
Copy link

Also please check the JS console for errors.

@kirancheema
Copy link
Author

thanks no errors showing on console (IE developer tools)

@pollen8
Copy link
Member

pollen8 commented Oct 28, 2015

I'm pretty sure you should use onchange on radio buttons, not on click which depending on the browser is fired before/after the value is actally changed.

@pollen8 pollen8 closed this as completed Oct 28, 2015
@kirancheema
Copy link
Author

Hi
I did try the onchange event as well as and it didn't trigger. The only thing that I managed to get working was to create an event trigger Via onload.. I have posted more in the forum

http://fabrikar.com/forums/index.php?threads/radio-buttons-and-ie8.42230/#post-213711

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants