i want to display a text box only when a check box is been clicked. what can i do to achieve that?
Discussion posts and replies are publicly visible
hi, Please go through below sample code and you can modify according to your requirements. The idea here is to configure the "showWhen" parameter of the text field. configure this parameter with a boolean variable which gets changed based on checkbox selection.
a!localVariables( local!selectedChoice:false, { a!checkboxField( label: "checkbox", choiceLabels: {"Yes","No"}, choiceValues: {true,false}, value: local!selectedChoice, saveInto: local!selectedChoice ), a!textField( label: "text field", showWhen: local!selectedChoice ) } )