Hello,
I new in appian and a have a trouble with radio button,
I have an interface with textfield and rabio button, (name, ID) I need to validate the textfield acccoriding to selecton made in radio button. I mean, If In rabio burron I chosse (name), the textfield only recive charters, if I choose ID in textfiled put only numbers.
I've created a localvariable to save the seleccion, But I don't know how to continue..
Colud you help me, pelase?
Best regards
Discussion posts and replies are publicly visible
Something like this?
a!localVariables( local!value, local!useName: true, { a!radioButtonField( label: "Radio Buttons", choiceLabels: {"Name", "ID"}, choiceValues: {true, false}, value: local!useName, saveInto: local!useName, ), a!textField( label: "Text", value: local!value, saveInto: local!value, validations: if( a!isNotNullOrEmpty(local!value), if( local!useName, if( len(stripwith(local!value, "0123456789")) = len(local!value), null, "Only characters" ), if( len(stripwith(local!value, "0123456789")) <> len(local!value), null, "Only digits" ) ), null ) ) } )
Thank so much...