function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
chandraprasanth Gchandraprasanth G 

Validation for Amount field should not be negative and not greater than 7 digits. Validate a Email field to ensure its last four characters are in an explicit set of valid website extensions. { .com, .org, .in, .co.uk………}

Best Answer chosen by chandraprasanth G
ravi soniravi soni
hi,
try below formula. I believe it will work.
OR( (CONTAINS(TEXT(Amount__c ), '-') ),
LEN(TEXT(Amount__c )) > 7 )

don't forget to mark it as best answe.
Thank you​​​​​​​

All Answers

ravi soniravi soni
hi,
try below formula. I believe it will work.
OR( (CONTAINS(TEXT(Amount__c ), '-') ),
LEN(TEXT(Amount__c )) > 7 )

don't forget to mark it as best answe.
Thank you​​​​​​​
This was selected as the best answer
AnkaiahAnkaiah (Salesforce Developers) 
Hi Chandraprasanth,

Refer the below help article to create domains for email to allow 

https://help.salesforce.com/s/articleView?id=sf.users_email_domain_restrict.htm&type=5

If this helps, Please mark it as best answer.

Thanks!!