Hi,
Can you please help me how to give validation to the Textfield, where it should accept only Alphabets.
If any special characters or numbers entered it should throw an validation error message.
Is there any function is there?
Discussion posts and replies are publicly visible
Hi. You could try this:
a!localVariables( local!test, { a!columnsLayout( columns: { a!columnLayout( contents: { a!textField( label: "Text", labelPosition: "ABOVE", value: local!test, saveInto: { local!test }, refreshAfter: "UNFOCUS", validations: { if( regexmatch( pattern: "^[a-zA-Z]+$", searchString: local!test ), null, "Only alphabetic letters (A–Z) are allowed." ) } ) } ), a!columnLayout( contents: {} ), a!columnLayout( contents: {} ) } ) } )