Hi ,
I am having a drop down with 4 choice values A,B,C,D. Based upon the value selected for Eg; D, a section will appear below.
My requirement is
so for this requirement i want to save the previous selected value of dropdown to compare with the latest selected value in order to do the refresh.
please provide your suggestions or any other idea to do this requirement.
Thanks in advance
Pradeep.B
Discussion posts and replies are publicly visible
a!localVariables( local!dropdownValue:{"A","B","C","D"}, local!selected, local!existingSelection, local!isSectionRefresh: if(local!selected="D", true(), if(and(local!selected="A", index(local!existingSelection,(count(local!existingSelection)-1),"")="D"),true(), false() ) ), { a!dropdownField( label:"Dropdown", choiceLabels: local!dropdownValue, choiceValues: local!dropdownValue, placeholder: "Please select", value: local!selected, saveInto: { local!selected, a!save(local!existingSelection, append(local!existingSelection,local!selected)) } ), a!textField( label:local!existingSelection, value: if(local!isSectionRefresh, null, local!selected) ) } )
You can try something similar to this
thank u ankitab254