Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Disable submit button after submission

Avatar

Level 2

We have a form that we have distributed to multiple users. The form is set so that submissions go to a pre-defined server location. The problem is that some of the users submit the form multiple times (not sure why). Perhaps they don't notice the message that says "Form submitted". In any case, we would like to disable the submit button after the form is submitted (even it is only for that "session"). I know that once the form is closed and reopened the button will work again and that is ok. If anyone has some suggestions I would appreciate it. Thanks.

1 Accepted Solution

Avatar

Correct answer by
Level 4

hi,

modify the above script to:

this.access = "readOnly";

your submit button will be set to read only.

Regards--

Chalukya

View solution in original post

4 Replies

Avatar

Level 4

Hi,

You can put this script in post-submit event of your submit button.

this.presence = "invisible"

Hope this will fulfil your requirement.

Regards-

Chalukya.

Avatar

Level 2

Thank you for the response. That is a great tip and I can use it if this other option is not possible. What would be ideal is to make the button "readonly". greyed out or otherwise disabled. I looked through the propoerty list and I couldn't see a way to make that happen. Is there a property to force "readonly"?

Avatar

Correct answer by
Level 4

hi,

modify the above script to:

this.access = "readOnly";

your submit button will be set to read only.

Regards--

Chalukya