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

Checkbox field with a NA (Not Applicable) option

I'm going for a checkbox with an option to the right of it to indicate that it's N/A or Not applicable for this Opportunity.


Q: Is there a component out there or examples of this already


Q: There are several ways to implement and would love some opinions on how you would implement.



Jeff MayJeff May

You can just create a custom field on your Opportunity of type 'checkbox'.  After you create the field, put it on your page layout and you should be all set.


Jeff I'm not looking for a custom checkbox field. Perhaps my description was confusing?


I'm looking for the best way to implement a checkbox with a NA (Not Applicable) option to the right of it. I'm looking to create a checklist on the Opportunity level. But some of the checkboxes will Not be Applicable for some opportunities. So we need a way to indicate which ones should be completed for that opportunity. 


Here is one way we though how to implement


1. Create a text field (Values will be Yes, NA, blank value)

2. Create a custom component + controller that shows a checkbox and a NA to the right of it

3. Custom component updates the text field with Yes when checked, NA when the NA is clicked, and blank for unchecked

4. When NA is clicked it will disable the checkbox