Copy link to clipboard
Copied
I have a radio button ( "Required" or "N/A" ), I would like to display an alert if N/A is selected. I have attached the following script to the N/A button, but nothing happens.
if(event.value==="N/A"){
app.alert("Required if ...",1,0,"Required?");
}
Change the first line to:
if (event.target.value=="N/A") {
Copy link to clipboard
Copied
Change the first line to:
if (event.target.value=="N/A") {
Copy link to clipboard
Copied
I made the changes, but I still do not get an alert when the N/A radio button is selected.
Copy link to clipboard
Copied
Can you share the file with us (via Dropbox, Google Drive, Adobe Cloud, etc.)?
Copy link to clipboard
Copied
Also,make sure you put the script under the action tab of the radio button that HAS THE VALUE N/A as its export value. Scripts are not shared across buttons of the same group.