IHelo,
I new in Appian, and, I need to validate that in a texfield, the user on type characters,, I mean (oaoa, mama, ect), NO number.
is there a special functions?
Could you hlp me please?
Discussion posts and replies are publicly visible
Try this: docs.appian.com/.../recipe-add-multiple-validation-rules-to-one-component.html
Hi , You can use below expression for your validation parameter, let me know if it helps.
if( a!isNullOrEmpty( tointeger(ri!text) ), null, "Please enter characters only" )
Thans..
Hi Gopal,
I am checking for Duplicates. How to validate "Dell" and "dell"? Right now, the text field is accepting both the entries.
Thanks
Hi Sandhya, could you please elaborate your use case? Where do you want to check duplicates? Are there two fields?
In a Supplier Name textfield, When adding a new supplier, I am checking if the Supplier Name already exists. But there could be cases where users can enter dell and its still been accepted as a new supplier when a supplier Name "Dell" already exists.
How to resolve this?
Hi Sandhya, Please see below code, basically it checks whether a value exists or not in the array irrespective case, here main idea is to convert both array and value in upper or lower case to make common case.
a!localVariables( /* list of suppliers */ local!supplierList: { "Dell", "Lenovo", "Hp" }, /* Checks whether provided value exists or not in the given array */ contains( touniformstring( a!forEach( items: local!supplierList, expression: upper(fv!item) ) ), upper("dell") ) )
Replace array and value according to your data.
Will check it. Thanks Gopal