Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Form with Javascript has stopped working

Avatar

Level 2

This form was working before, but it no longer responds in any way when I click the "Send Request" button (which is basically an email submit button).

https://acrobat.com/#d=lELFS*MPtZixEHObM2nkNA

I have added some new functions, but I don't know how or why they would be preventing the script attached to the button's click event from running.

  • Changing the Action on the form changes which text blocks and buttons are visible.
  • There are additional validation steps in the click event.

I was expecting to see pop-up messages when clicking the "Send Request" button, since I had not completed fields required in the validation process, but nothing happens at all. The dynamic changes that occur when selecting an Action radio button seem to be working fine.

Ideas?

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

you used a wrong operator ! several time in the submit button script.

Like this line:

If you want to check if something is not equal the use != or !== but not only !.

Change the operator and your script should work again.

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Hi,

you used a wrong operator ! several time in the submit button script.

Like this line:

If you want to check if something is not equal the use != or !== but not only !.

Change the operator and your script should work again.

Avatar

Level 2

I obviously need to read my Javascript book more carefully.

Thank you, radzmar.