function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sai manognasai manogna 

I have a contact object , phone is a field (not mandatory),but thru pagelayout i wil make the field as required and there are few triggers on the contact object.whn i create a record wil this trigger throws an error or not?

I have a contact object , phone is a field (not mandatory),but thru pagelayout i wil make the field as required and there are few triggers on the contact object.whn i create a record wil this trigger throws an error or not?
Raj VakatiRaj Vakati
Logically NO .. trigger wnt through the error .. but i can suggest make sure you are checking proper NULL handling
NagendraNagendra (Salesforce Developers) 
Hi Sai,

First thing is that the trigger will execute once the record will pass from the page layout. As the payout will prevent you to insert the record without phone number trigger will not fire.

Yes, one thing if you will create a record from console or data loader then it will escape and allow you to create record.

Please check the order of execution in below link you will clear. Hope this helps.

Kindly mark this as solved if the reply was helpful.

Thanks,
Nagendra