You need to sign in to do that
Don't have an account?
Wes Reed 27
What is there left to accomplish goal? Thanks.
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.