You need to sign in to do that
Don't have an account?
Wael RAWAS 7
How can i create a custom button that lunches the validation rules in a page?
Hey everyone,
I have records in a custom object, and validation rules are created after the records were integrated. So, the records before adding the validation rules are not validated.
That's why i need to add a custom button that can validate the record, which means call the validation rules function to verify that the records' contents are valid. How can i do this ? can i trigger the validation rules? can lunch the save button ?
Ps: i don't want to rewrite all the validation rules in code
Thank you in advance
https://success.salesforce.com/answers?id=90630000000gwO5AAI
Example 1:-
Example 2: - https://success.salesforce.com/answers?id=90630000000CjubAAC
Example 3:- PLease check below post for step by step process
http://salesforce.stackexchange.com/questions/8521/how-to-build-a-salesforce-custom-button-with-validation-rules
http://salesforce.stackexchange.com/questions/4497/button-validation-logic
Please let us know if this will help you,
Thanks,
Amit Chaudhary
But as i indicated, i don't want to rewrite my validation rules in the javascript. I'm looking for triggerubg the validation rule instead of rewriting hundreds of validation rules in form of code.