You need to sign in to do that
Don't have an account?
suman myana
how to disable command button based on input check box in vf
<apex:commandButton styleClass="select-block-button" value="{!$Label.Select_Button}" action="{!selectedProducts}" id="myCmdButton" disabled="false" /> <apex:column > <apex:inputCheckbox styleClass="" value="{!productVar.aCheckBox}" immediate="true" /> </apex:column>
There are two ways to impement this approach.
1) Use javaScript and disable button depending upod checkbox check action.
2) Use apex:ActionRegion to partial re render small section which include command button.
Try to avoid 2 option to, Because it increses server hit.
Thanks
Ajay Rawat