Question
Infosys
Infosys
IN
Infosys
Posted: Jan 4, 2022
Last activity: Jan 4, 2022
Last activity: 4 Jan 2022 8:52 EST
Closed
I want to do validation for the field when user enter "Phone" and submitted and again if he entered "PHONE" and submitted it shou
I want to do validation for the field when user enter "Phone" and submitted and again if he entered "PHONE" and submitted it should show error message. For this what function I need to use in validation?
***Edited by Moderator: Pooja Gadige to change category from General to Product, add product details tag, add capability tag***
To see attachments, please log in.
Hi @SivaSaikrishnaP, you can use the method @equals(String1,String2).
By using this: @equals("Phone","PHONE") will return false and @equals("Phone","Phone") will return true. So, when "false" you can set the error message accordingly.
Hope this helps!!
Thanks,
Saurabh.