You need to sign in to do that
Don't have an account?
Melissa Tomasko
How can a disable a button
Hi Guys,
I have created a custom button that when clicked will trigger an email that will allow my sales team members to request and account.
My issue is that I would like to have this button, "Request Account" disabled after the email is sent so that there are not multiple requests for the same account. I would also like the button to reappear after I have made the transfer.
What is the best way to do this?
Try below code with your button: 2 ways you can do this:
Using Javascript :
Using Controller:
Class sample code:
Button in VF page:
Note that you had both your method named enableSpehere and also your Boolean property. I changed the Boolean property name for you to spehereEnabled. You'd just change the pageBlockSection rendered binding to...
Hope this will help you.
Thanks
karthik