+ Start a Discussion
Sourav PSourav P 

To give a warning message rather than an error message and allowing to save the record

Dear All
I have a need where , i dont want an error message and not allowing the user to save ( which can be done with a validation rule) , but just to prompt a warning and allowing to save the record.
As per my below screenshot, The " Main Driver" field is coming from the above " Account Name" field. Once i have a new quote, The Main Driver field automatically takes the account name plus all the details ( age , gender, MS, etc ). But say, if the user want to change the fields marital status, driving exp, acc in last 12 months, occupation. they should able to do that, but with a warning that it differs from the account. Can anybody plz suggest how to do this, in standard page. thnx

User-added image
Best Answer chosen by Sourav P
BALAJI CHBALAJI CH
Hi Sourav,

You can achieve this with either of the following methods:
1) Create a custom Save button to manage the requirement. Please find below link for an example:
https://developer.salesforce.com/forums/?id=906F000000092voIAA

2)  Including Home page component with JavaScript as per requirement. Please find below link for an example:
https://developer.salesforce.com/forums/?id=906F00000008nrIIAQ

Let us know if that helps you.

Best Regards,
BALAJI

All Answers

BALAJI CHBALAJI CH
Hi Sourav,

You can achieve this with either of the following methods:
1) Create a custom Save button to manage the requirement. Please find below link for an example:
https://developer.salesforce.com/forums/?id=906F000000092voIAA

2)  Including Home page component with JavaScript as per requirement. Please find below link for an example:
https://developer.salesforce.com/forums/?id=906F00000008nrIIAQ

Let us know if that helps you.

Best Regards,
BALAJI
This was selected as the best answer
Sourav PSourav P
Thanks a lot Balaji, Let me check this.