Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Populate text field with the value from a second dropdown based upon the selection made in the first dropdown.

Avatar

Level 1

Hello. I'm attempting to populate a text field within a repeatable sub form (LiveCycle) based upon the selection made within a dropdown that exists within the same sub form. When the selection is made in the drop down data field, I want to populate the text field with the value from another drop down data field or text field that exists not within/outside of the sub form. I've attempted to do this using JavaScript and nested if then else statements without success. (If subformdropdown = "1" then subformtextfield = dropdown1, else  if subformdropdown = "2" then subformtextfield = dropdown2, etc...). I'm normally able to solve my own coding issues, but not this time.

Any help would be appreciated.

Thanks.

0 Replies