I created a VF page with a few checkboxes:

checkbox_1__c named 'Check1'

checkbox_2__c named 'Check2'

I want to display different field labels on this specific page, such as 'Access Enabled' or 'Access Denied' instead of 'Check1' and 'Check2'.

Can someone explain if this is possible?

  • Where did you actually giving name for checkboxes? – Reshma Feb 23 '17 at 12:28

You can add a label to your CheckBox:

<apex:inputCheckbox value="{!YourcheckBox__c}" label="Whatever"/>

That way you can use any label for your checkbox.

  • Ah I didn't think of that, good one! – Raul Feb 23 '17 at 13:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.