pluginsGLPI / formcreator

GLPI Plugin Formcreator (DOWNLOAD : https://github.com/pluginsGLPI/formcreator/releases)
http://www.teclib-edition.com
GNU General Public License v3.0
174 stars 125 forks source link

Submit button #3391

Closed lehvairo closed 1 year ago

lehvairo commented 1 year ago

If you press submit, the form could be reset. Or is there any other solution other than Captcha. Currently, users can spam the submit button. What other solutions are there?

GLPI Version: 10.0.2 Form Creator Version: 2.13.7

The submit (answare) button is displayed in the picture ↓↓↓ bywnlXAt2D

btry commented 1 year ago

Hi

If a user submits a form, he cannot spam the button as long the submission is not complete. There is a spinner un the button to show that the submission is being processed, and the submit button shall be disabled. After the submission, the user us redirected to a page which confirms his requests has ben saved.

There is only the captcha to prevent robots to use a public form.

I don't understand what is your issue. Is the form reinitialized at some point ? Di you seed something else than a captcha for a public form ? Do you have users who send several times the same request ?

lehvairo commented 1 year ago

https://youtu.be/bxpKT-V-7e8

Here is video about spamming.

btry commented 1 year ago

The user should be redirected to a new page after the submission is complete. There is something wrong.

Peek 11-10-2023 14-25

Use browser's developer tools to submit the form via CLI and see the returned content of the request (request to ajax/formanswer.form.php)

Peek 11-10-2023 14-27

You should have something like this : a JSON string containing an URL the browser will follow to do the redirection.

image

lehvairo commented 1 year ago

It should be here. But I don't have it. Is it possible to add it manually somehow?

image

lehvairo commented 1 year ago

We updated GLPI and tried to update Form Creator but it gives this error message chrome_lTsAR0i8oz

image

lehvairo commented 1 year ago

Currently we got to the point where GLPI version is 10.0.2 and Form creator version is 2.13.7. The form is working, but the sending part is still not working.

btry commented 1 year ago

Sole minor things are broken between glpi 10.0.2 and Formcreator 2.13.7. Upgrade glpi to the very latest revision.

btry commented 1 year ago

For the sending problem you should check php-error s.log and sql-errrors.log. maybe there is a problem which prevents to redirect properly.

lehvairo commented 1 year ago

image

GLPI update worked. How to change this text?

btry commented 1 year ago

You can change it in the code of the plugin. There is nothing to customize it without changing the code.