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">
                    Bypass Label currently set to: {!$Label.BypassTriggers}
                    Change label to: 
				<apex:inputText id="newLabel" value="{!$Label.BypassTriggers}"/>
            <apex:pageBlockButtons >
                <apex:commandButton action="{!save}" value="Save"/>

What is there left to accomplish goal? Thanks.