+ Start a Discussion
cloud lendingcloud lending 

Incorrect argument type for function 'REGEX()'.

I have a field like 'Apartmentnumber'.data type number(16,0).
for this i have written validation like this
NOT(REGEX( Apartment_Number__c, "^[0-9]+$"))

i am getting an error
 Incorrect argument type for function 'REGEX().

can any one solve this validation
Tolga SunarTolga Sunar
You are allowing "+" in REGEX function, which can not be inserted into a number field.
Vijay NagarathinamVijay Nagarathinam
Hi Cloud lending,

Use the below rule, it will work

Let me know if you need any help regarding this.