December 5, 200223 yr Newbies I have a checkbox and a 3 radio buttons. I want to create a script that depending if the checkbox is marked or not and the radio button selection a different script is run.
December 5, 200223 yr Scripts will only run in a few contexts Opening a document Closing a document Clicking a button Choosing a script from the script menu. So, to do what you are asking you must present the checkbox/radio buttons to the user, allow then to make a selection. Then have them click a button that runs a script that decides based on the values in the check boxes /radio buttons to run another script.
December 5, 200223 yr spragueg is right about running the script. it either needs to be run manually from the scripts menu or attached to a button. however, pretty much anything can be a button, including the check box. In layout mode, right click it and select specify button... in there you can say what script you want to run. Remeber that a button or a checkbox is just a field... the value of the box(es) or the radio button is what goes in the field. Thusly you can use the IF/ELSE logic in scriptmaker to use the settings of radio buttons to control the flow of the script. Hope this helps.
Create an account or sign in to comment