Hello,
I am using the Ribbon Workbench and my initial goal is to prevent someone from closing an opportunity as won or lost until they enter a value on the form.
Changing the command value of the button itself in the workbench does not seem like a viable option. My logic works, but I can't seem to get the Close as Won event to cancel if I want it to. I put return false; in the JS file if the value was not present, but it did not stop the Close window from popping up.
So the other option I am currently evaluating is an enable action. I.E., Disable those buttons if the field does not currently have a value, otherwise enable. The problem is, the reason behind the buttons being disabled is not clear to the user. I'd like to put some hover text on it.
Is it possible to change the tooltip for the Close as Won/Lost buttons on the fly in a Javascript form OnLoad? I'm aware that this setting can be changed in the workbench but I need to do it in Javascript. Ideally on load, I will change the tooltip to my custom sentence(s) if the button are disabled; otherwise, I want the tooltip to be the default message.
Additionally, if you have a way better idea for accomplishing my objective, do let me know...
Thank you,
Paul