- natupoteAsked on June 22, 2016 at 02:03 AM
Hello everyone and sorry my english
when a option is selected, a alert text will shown in the screen, i can do that using the radiobuttons, but now i want learn how to use that funcion in the image checkbox widget.
Script to use with radiobuttons is below<input type="radio" id="grupo1" name="grupo1" value="Esquerda" onclick= "alert(''TESTE DE TEXTO')"" checked>Alinhamento à esquerda<br>
Thanks for read!
- JotForm UI DeveloperberilAnswered on June 22, 2016 at 04:18 AM
- natupoteAnswered on June 22, 2016 at 01:12 PM
thanks for help!
- BorisAnswered on June 22, 2016 at 03:01 PM
I'm afraid it is not possible to add any custom JavScript scripts into our widgets, such as the Image Checkbox widget, as they are being loaded in separate iFrames inside the main form.
If you need to add custom scripts, they can only be added for regular form fields (not for widgets), and only when using the source code of your form (which you are already using).
For the reason listed above, you may want to use a regular Check Box field instead of the Image Checkbox widget, in case you want to apply custom scripts to the options. Please let us know if you need any further clarifications or assistance, we'll be happy to help.