Can I run different scripts when clicking the same custom button based on the selection in a drop-down object? The selection in the dropdown determines which script runs.
For example: if the dropdown selection is "A" - sustom button runs script A
If the selectionin the dropdown is "B" - the same custom button only runs script B.
Note: Each script contains a few if statements
How do I script that?
Solved! Go to Solution.
Views
Replies
Total Likes
You need to use an if...else statement.
if (dropdown == "A") {
do stuff;
}
else if (dropdown == "B") {
do other stuff;
}
else if (etc.) {
do more stuff;
}
And you can nest if statements inside of other if statements.
Views
Replies
Total Likes
You need to use an if...else statement.
if (dropdown == "A") {
do stuff;
}
else if (dropdown == "B") {
do other stuff;
}
else if (etc.) {
do more stuff;
}
And you can nest if statements inside of other if statements.
Views
Replies
Total Likes
Thanks Jono. That will make this much easier!
Views
Replies
Total Likes