In the expense Item name field I don't want that the user can put there numbers. If done, It should return error as "don't put numbers in the text field."
Discussion posts and replies are publicly visible
Hi Vikash,
I suggest you check the following thread in which some possible solutions for your problem are discussed (https://community.appian.com/discussions/f/rules/4544/we-have-text-fields-that-we-need-to-validate-are-numbers-for-example-if-the-v).
Once you have the approach that you believe works best for your use case, you will need to associate that expression rule to the validations property of your Text component.
As i understand, this topic solves the issue to just have numbers. vikashk wants the other way around, that no numbers should be possible.
You're right Richard. Thank you for bringing that up.
With that taken into consideration, vikashk739 you can always use a regular expression to control the behavior you want (you'll need the Regular Expression Functions plugin - community.appian.com/.../regular-expression-functions -). Also check Richard's suggestion below using an enumerate.
a!textField( label: "Expense Item", labelPosition: "ABOVE", value:ri!text, saveInto: ri!text, refreshAfter: "UNFOCUS", validations: if(regexmatch("^[a-zA-Z ]*$",ri!text),null,"No Numbers Please") )