+ Start a Discussion
shaik imran bashashaik imran basha 

Validation rule for a field

when  a button(Provision Request)  is called then i need to  validate a field called Validation_Plan__c when that field is empty it should throw an error is they a way where we can do it
Vishal ShelarVishal Shelar
You can write a trigger as after update and check whether the field is empty or not. If the field is empty through an error.
GauravGargGauravGarg

Hi Shaik,

To implement this, you need to convert (provision request) button into a javascript button and follow below steps:

if({!Object__c.Validation_Plan__c } == true){
  open link for Provision request
}else
{
  alert ('error message.');
}

Hope this will helps you, let me know if you still face some issues. 

Thanks,

Gaurav
Email: gauravgarg.nmims@gmail.com
Skype: gaurav62990