Newbies site_tester Posted October 25, 2002 Newbies Posted October 25, 2002 I have a check box Depending if it is checked or not checked I want to run a script that fills in content in another field. How do I have the selecting in a check box run a script? Thanks
CobaltSky Posted October 25, 2002 Posted October 25, 2002 One way to do this would be to place an invisible button over the checkbox (and turn off entry to the field). Users clicking on the button would be launching a script, but they wouldn't know that. The script could first test whether the checkbox is already checked and if so uncheck it - but if it is not checked, the script could check it then go on to perform the actions you have in mind. That way, clicking on the checkbox will still check/uncheck it, but ut will also activate your script sequence as appropriate.
Newbies site_tester Posted October 28, 2002 Author Newbies Posted October 28, 2002 That is a great answer and works really well Thanks
jasonwood Posted November 12, 2002 Posted November 12, 2002 If your simply filling in contents of another field... might it be easier to simply specify a calculation for that field with an If statement (If checked then "blah blah blah" else "") This would not work if you wanted to be able to modify this field. -- Jason
Recommended Posts
This topic is 8047 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now