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
kathir_prakashkathir_prakash 

Required property for Checkbox is not enabled?

Dear All,

 

In checkbox properties Required option is not enabled?

 

how to make it enable or any other way to achieve this.

 

please help me out in this.

 

Thank you

regards,

prakash

Best Answer chosen by Admin (Salesforce Developers) 
RpeeRpee

Checkboxes can't be required. That would mean it always had to be checked. A user should be able to answer: True - Checked or False - Unchecked. The default is False. If you want it always checked, make checked the default and make a validation rule saying ISCHANGED( Checkbox__c ), so it could never be False.  If you want to force a decision, make a picklist with YES and NO as the option and make that required. 

All Answers

sales4cesales4ce

Sorry for wrong info there.You could do like what user Rpee says.

RpeeRpee

Checkboxes can't be required. That would mean it always had to be checked. A user should be able to answer: True - Checked or False - Unchecked. The default is False. If you want it always checked, make checked the default and make a validation rule saying ISCHANGED( Checkbox__c ), so it could never be False.  If you want to force a decision, make a picklist with YES and NO as the option and make that required. 

This was selected as the best answer