Answered
add script
I have a lot of checkboxes, I want to add on focus script to all the checkboxes, is there a way to automate this?
I have a lot of checkboxes, I want to add on focus script to all the checkboxes, is there a way to automate this?
You can use this in a button or run from console:
for(var i=0; i<this.numFields; i++){
var fname = this.getNthFieldName(i);
var f = this.getField(fname);
if(f==null) continue;
if(f.type=="checkbox") f.setAction("OnFocus", "Put your script here");}
In your script, use single quotes or escape quotes with backslash.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.