Hi all, I'm trying to get an alert to appear on the page where my script is running, this should be really simple I would have thought, but I'm having no luck.
The alert is supposed to trigger if the use doesn't fill in a field on a new location form. At the moment, the script is logging that no location has been filled in, but no alert box is appearing and the record as expected does not save, except in the 3rd script where I try to use 2.1 and the script doesn't appear to be triggering at all.
In my first example, I tried using 2.x and the dialog just does not appear, I did try this on different browsers just to be sure.
The second example I tried to include .then and .catch in addition the the alert but keep getting errors that, based on the examples, I don't understand how I'm supposed to define the null methods.
The last attempt I try to do the same but with 2.1 and in this instance the script just doesn't appear to be triggering at all, letting the record save without any issue.