You need to sign in to do that
Don't have an account?

VAlidation rules on Number & Pecent Datatype
Hi All ,
i am having an 2 fields booked value (number data type) and Booked value percentage (Percentage data type) below is my validation
"SBLANK (Booked_value__c ) && number_fields__c <= 100" i tried with many its not working bascialy my requeitement is when user is trying to create a record it should enforce the record to enter the data for that i am using isblank for the booked value field then in the booked value percentage field the number should be 0 to 100% can anyone let me know where is it going wrong
i am having an 2 fields booked value (number data type) and Booked value percentage (Percentage data type) below is my validation
"SBLANK (Booked_value__c ) && number_fields__c <= 100" i tried with many its not working bascialy my requeitement is when user is trying to create a record it should enforce the record to enter the data for that i am using isblank for the booked value field then in the booked value percentage field the number should be 0 to 100% can anyone let me know where is it going wrong
Please try below forumula in validation rule, this will trigger only in record creation.
IF( ( ISNEW()&& ISBLANK( Booked_value__c ) && number_fields__c >=100) , true, false)
Thanks
use this formula to restrict user to enter value in number field and enter value from 0 to 100 in percentage field
OR(
ISBLANK( number_field__c ) ,
OR(
percent_field__c> 1.0,
percent_field__c< 0.0
)
)
Please mark this question as Solved if this helps you so that others can view it as a proper solution.
Thanks,
Rahul
Try my validation it is working according to your requirment.
Thnaks
You want number field to be required and percentage field to be between 1 -100. ?
In any of the case you want error message?
You will have to satisfy both condition to enter record to database.
Thanks
Please try below solution:
IF( ( ISBLANK( Booked_value__c ) && number_fields__c >=1.00) , true, false)
Give this a shot. It should definitely work.