When an item in the "Campus" dropdown is manually selected, the "Merchant" dropdown populates. This requires triggering the onchange event, which does not happen when an item in the Campus dropdown is selected from a KM macro.
I could use some help on how to do that.
I think the code below is the relevant line from the page. Let me know if any additional code from the page is necessary. (The page is only accessible when logged in as an admin on the site.)
Thanks for the suggestion. I tried this action, but the Merchant menu didn't populate. I don't know javascript at all, so I'm not sure where to start for troubleshooting.
I feel like I'm close. How about... instead of trying to simulate triggering the onchange event, just execute the javascript that's called when the onchange event is triggered?
Any suggestions as to what part of the onchange value I need to put in the KM "Execute JavaScript in Google Chrome" action? (I tried a few different things, but none of them worked.)
Try changing it from “ignore results” to displaying the results, then you will see any error message.
Also, try using the console in Google Chrome, and pasting the code in there. Get the code working within the console and then once it is working it should work in Keyboard Maestro’s action.
OK, that's great. The fact the setting the CampusID does NOT trigger the onchange tells us something else needs to be done. But what?
Sorry, I am going to need the actual HTML on the page before I can really be of further help. This is a complex page, and I will need to inspect and test.
You could select/copy the outerHTML of the first major <div> above the <select> statement, and post that here, or in PM.