0

Can you show alert message on standard page layout? when user change the lookup value and try to save?

here is my scenario, I have a lookup on a standard page layout and when the user change to any Foreign Employer and try to save then I want to alert a message

Is that possible in Validation rule?

enter image description here

  • no you can't show alert message.. instead create validation rule – Ratan Paul Feb 18 '16 at 15:20
  • You'd need a page layout to do that. Standard page layout doesn't provide such functionality. – Riadh Mankai Feb 18 '16 at 15:21
  • It is only possible with Javascript or Visualforce. You can replace standard Save button with your own and bind some javascript on that button that will alert or redirect further. Or add visualforce to your layout. – Oles Malkov Feb 18 '16 at 15:43
1

Sure, assuming Foreign is a checkbox on your Employer object, just write something like

Employer__r.Foreign__c = true

and have it display an appropriate error message.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.