function readOnly(count){ }
Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
<!-- Page: --> <apex:page controller="exampleCon"> <apex:form > <apex:outputpanel id="form"> <apex:inputText value="{!testValue}"> <apex:actionSupport event="onblur" action="{!disableButton}" rerender="form" status="counterStatus"/> </apex:inputText> <apex:commandButton action="{!save}" value="Save" id="theButton" rendered="{!(!disableFlag)}"/> </apex:outputpanel> <apex:actionStatus id="counterStatus" startText=" (processing...)" stopText=" (done)"/> </apex:form> </apex:page> /*** Controller: ***/ public class exampleCon { public boolean disableFlag {get; set;} public string testValue {get; set;} public PageReference disableButton() { disableFlag = true; return null; } public PageReference save() { return null; } }
Please use below code to disable comand butotn