0

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?

1
  • Where did you actually giving name for checkboxes?
    – Reshma
    Commented Feb 23, 2017 at 12:28

1 Answer 1

4

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.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .