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
Shruthi GM 4Shruthi GM 4 

How to make a field mandatory in the integrated project where drupal is the frontend and salesforce is backend.

Can someone please guide me as how to make a single field mandatory in an integrated project where salesforce is backend and drupal is frontend.

Thanks inadvance.
TintuBabuTintuBabu
Hi Shruthi,

Yo make field mandatory Mark it required while creating or write a validation rule.

If a field is marked required in the Schema (Setup -> Customize -> Leads -> Fields -> Click Custom Field (Mark Required) than API calls will require the fields.
 
If a field is marked required in a Validation Rule (Setup -> Customize -> Leads -> Validation Rules (Valdiation Rule for Field) than API calls will require the fields.
 
If a field is marked required in a Page Layout ONLY (Setup -> Customize -> Leads -> PAge Layouts (Mark Field as Required in Layout Editor) than you WILL NOT need to enter it in the API .

Reference : https://developer.salesforce.com/forums/?id=906F00000008mAJIAY

Hope this helps !