I'm creating a webform to build up a subscription form, on Drupal 7.65
Goal
What I need to do is: to select a role from a list, and automatically to display the associated name of that role, in a text field. As I said, the name should be displayed into a not modifiable text field just below it.
Suppose valid, the following list (key => value
)
Field: Department
- business_manager|Business Manager
- hr_consultant|Human Resources
- training_developer|Training Developer
and from the time going on, the associated names, are respectively
Options can appear into text field hr_business_partner
- Steve Abc
- Gertrude Def
- Sven Hgj Klm
Thus when the trainee selects "Human Resources", the name of "Gertrude Def" should appear into the text field below the select one. I've attached a mokup to better understand what I do need.
IMPORTANT I can't put the names into the list as value, because the association can change but old records should keep the previously registered associations