Predefined JavaScript for element Yes/No seems to have switched value

Status
Not open for further replies.
Is it not a standard that No == 0 and Yes == 1 ?

JavaScript.jpg

Joomla! 4.3.3 | Fabrik 4.0delta new install | PHP 8.0.29
 
Should be. But your screenshot isn't quite clear. Two fields with the same label. Or are this different screenshots put together in one picture. I assume a bit more explanation would help (btw. I usually use the 'load' and 'click' events...)
 
My image shows the action in chronological order.
1. JavaScript applied.
2. Result when "Production period" = No
3. Result when "Production period" = Yes
 
Not sure what will happen "on focus". I never used this before, onFocus (without any click) won't change a value so it may be used to do something with the element itself?
I tested with onChange, which is doing fine.
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top