Hi Everyone,
Can anyone please tell me how can I populate other fields in interface based on value selected in one of the dropdown field?
Thank You
Discussion posts and replies are publicly visible
Hi,
In case, you want to have just one field to auto-populate the result, you could attempt the below approach:
a!localVariables( local!dbResult:{ a!map(id:1,name:"Yes Value"), a!map(id:2,name:"No Value"), }, local!showWhen, { a!dropdownField( label: "Drop Down", placeholder: "Select a value", choiceLabels: { "Yes", "No" }, choiceValues: { "Yes", "No" }, value: local!showWhen, saveInto: { local!showWhen } ), a!textField( label: if( local!showWhen = "Yes", "Filed when value is Yes", "Filed when value is No" ), value:if( local!showWhen = "Yes", local!dbResult[1].name, local!dbResult[2].name ), showWhen: or( local!showWhen = "Yes", local!showWhen = "No" ), ) })