Copy link to clipboard
Copied
I need to substitute a form field drop-down answer (male, female) for another custom tag (his, her) is there a way to do this in an auto populated hidden field, or substituting it in a {tag}?
Example:
If they select "male" the form can populate "his" when called into a web-app.
If they select "female" the form can populate "hers" when called into a web-app.
Copy link to clipboard
Copied
Hi Gregory,
You should be able to use some JS or jQuery to auto populate the his/her fields in response with the male/female dropdown.
You would need to get the value of the option selected in the dropdown, and compare it, if male then post value (his) to the hidden field.
Of course, you would need to use DOM events for JS: JavaScript Events Examples‌ or Form Events for jQuery https://api.jquery.com/category/events/form-events/
to trigger the change after an event.
Good luck,
M.