• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Substitute form answers into additional tags.

Explorer ,
Nov 10, 2015 Nov 10, 2015

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.

TOPICS
Web apps

Views

573

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Nov 11, 2015 Nov 11, 2015

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines