Field Update trigger check to see if field is null

Posted by intekra on 24-Jun-2016 15:53

Hi,

Can someone one let me know how to tell the field update trigger to only fire if the field is left blank?

Invoice Object. If rate field is left blank, then when saving, update the rate from the related projects object. otherwise save the value typed into the field.

Thanks

Jeff

All Replies

Posted by Chandrasekhar Gontla on 24-Jun-2016 22:25

Hi intekra,

You can do it in the following way.

> Define a 'Update Field Value' Trigger on 'rate' field where put a condition in formula area like below

if("{!rate}" == "")

{

 //write code to get the value from related records

 return <value>;

}

Thanks and Regards,

Chandu.

This thread is closed