Here are my fields:
The “Please specify *” textbox will only appear if “Other” is selected from the dropdown list. Otherwise, it will be hidden.
As best practice, you need to encapsulate your code inside this:
This way, your code will not be triggered on load of your web forms.
Here is my code:
Note: For the jQuery code to work, I need to replace $ to clickd_jquery.
To explain the code,
#f_3619cd88192be71180fe3863bb367d68 is the field ID of the drop-down list. I used its change event to trigger the code when the field’s value is changed.
#f_a3ead8a71a2be71181033863bb367e08 is the field ID of the text box. To set the visibility of the textbox, I used its hide/show method.
Save the Code Editor window, as well as the form and see if it works.
Feel free to add a comment for any clarifications or questions.
Published at Tue, 27 Jun 2017 17:00:41 +0000