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
Wes Reed 27Wes Reed 27 

Edit custom lable value on vf page

We have a custom lable with a falue of false. I'd like to have a visualforce page with a form that allows the value of the custom lable to be changed to true, without having to go into Setup to edit. Here is what I have so far and im getting this error on my vf page: Read only property 'ApexPagesELAdapterContext.$Label.BypassTriggers'; and this error on my controller: Duplicate field: myLabel.

Controller so far:
 

public class changeBypassTriggerLabel {
    String myLabel = System.Label.BypassTriggers;
    
    public String myLabel{get; set;}
    
    public changeBypassTriggerLabel(){
        
    }

}
VF page so far:
 
<apex:page controller="changeBypassTriggerLabel">
    <apex:form id="changeBypassLabel">
        <apex:pageBlock title="Quick Edit Bypass Trigger">
            <apex:pageBlockSection>
                <p>
                    Bypass Label currently set to: {!$Label.BypassTriggers}
                </p>
                <p>
                    Change label to: 
                </p>
				<apex:inputText id="newLabel" value="{!$Label.BypassTriggers}"/>
            </apex:pageBlockSection>
            <apex:pageBlockButtons >
                <apex:commandButton action="{!save}" value="Save"/>
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>

What is there left to accomplish goal? Thanks.