I have a value list (radio buttons) that contains three values (the same field name). Like this,
Comment: * comment1 * comment2 * comment3
I would like to make a script that when a user checks one certain value (if check comment2), send an alert email to someone.
So far, I made the whole value list field connect to the script. So no matter which button to check, the script is activated, which is not what I want. Also, When I switch buttons, they are not changed.
My script is below --
if ["not IsEmpty(CommentType) and PatternCount( CommentType , "comment2" )"]
Beep
SendEmail["comment2 email"]
End if
Thank you.
Comment: * comment1 * comment2 * comment3
I would like to make a script that when a user checks one certain value (if check comment2), send an alert email to someone.
So far, I made the whole value list field connect to the script. So no matter which button to check, the script is activated, which is not what I want. Also, When I switch buttons, they are not changed.
My script is below --
if ["not IsEmpty(CommentType) and PatternCount( CommentType , "comment2" )"]
Beep
SendEmail["comment2 email"]
End if
Thank you.