on 09-12-2014 2:43 PM
Hi,
Has anyone tried enabling or disabling script buttons on a flavor using Javascript. I have two script buttons,
In the Button1 script towards the end, I need to enable Button2 is a contract is found. So in the Button1 script, at the final step I try to calculate in JS and write the following JS code,
var args.btn2id = document.getElementById("Personas/blahblahblah");
args.btn2id.disabled = false;
But this is never works. And I have noticed that the control id does not return the control object in Javascript (so, args.btn2id is always null) and I tried removing the '/' and various other options.
Has anyone ever tried to enable/disable buttons in Personas? Is it even possible?
Abhijeet
You don't have access to the Personas control properties from JavaScript to dynamically change them.
About the only thing that comes to mind is Tobias' method to hide the script button if you want to disable it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.