You need to sign in to do that
Don't have an account?
shan raz
How to grey out save button on VisualForce
Hi,
I like to render the Submit button on VF page only when Status is not equal to null... Or have it grey out and not grey out on disable.
I tried this but no luck... Please help. Thank you
I like to render the Submit button on VF page only when Status is not equal to null... Or have it grey out and not grey out on disable.
I tried this but no luck... Please help. Thank you
<apex:commandButton value="Submit" action="{!saveChanges}" reRender="errormsg" id="add" status="status" rendered="{!If('{!$Component.status}'==null,false,true)}" />
Below is the sample code.
Hope above information was helpful.
Please mark as Best Answer so that it can help others in the future.
Thanks,
Vinay Kumar
Thank you Vinay, but it didnot work for me actually I wanted to do so when Status is selected to enable the button. So I tried something like this but does not work. Do you see where am I going wrong here.. Please see below
thanks
Z