Hi All,
I've semi successfully created a dropdown menu selection script on this website however it's not showing a 2nd option when I run my script. Thanks for taking a look at this complicated code.
Here is one which works when I select the webpage using a mouse
As you can see the JavaScript is simpler, although this simplicity makes it more fragile than the previous macro. This is because it depends upon the position of the item to be selected in the menu, whereas the original looked for the text of the menu item.
It's unlikely the text label will change in future, but it's less unlikely that its position in the menu will change.
This is easy enough to test for and work with though.
As you can see I've also added a Focus Safari Field action, so the focus on the page is left on the Announcement Sub-type field.