Welcome, Guest
Username: Password: Remember me

TOPIC: PSA: Custom javascript mandatory logic reandomly breaking

PSA: Custom javascript mandatory logic reandomly breaking 1 month 2 weeks ago #112140

  • Bigred
  • Bigred's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 29
  • Thank you received: 10
  • Karma: 2
Hey Everyone. I have had an issue with small number of random people using random browsers/browser versions getting past some of my custom javascript manadatory logic.

For these questions i usually run through a few if statements and if the question has not been answered properly i will throw up an alert and return false.

It seems that if someone tries to move forward multiple times and checks the option (if their browser offers it) to suppress all further alerts for the page they are on, the script will break at the alert and the form will submit.

I am now using preventDefault() on form submits when i run custom logic and i submit the form myself if the logic is true (which i should have been doing from the start :blush:).

This is just a heads-up for everyone who may have had or is having the same issue.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.085 seconds
Donation Image