M
M
Mikle8882019-12-19 16:49:23
MODX
Mikle888, 2019-12-19 16:49:23

Why does ModX Eform not want to work with the checkbox?

The site has a two-stage form: 5dfb7f2ac6d44115318372.png
After clicking on the button, a popup appears with another field and a checkbox:
5dfb801670ca8296437188.png
I've already tried a lot of things, the form does not want to be sent with a checkbox. If you remove the checkbox from the markup, then everything functions adequately, but it doesn’t want to work with it.
I'm working with modx and especially EForm for the first time, so I have no idea what's wrong here. Please help
Checkbox code:

<div class="orange-form__privacy">
                    <input type="checkbox" name="privacy" id="privacy-10" checked="checked">
                    <label for="privacy-10"><span></span>Даю <a href="#privacy-policy" data-fancybox="">согласие</a> на обработку персональных данных и принимаю условия <a href="#privacy-policy" data-fancybox="">политики конфиденциальности</a> </label>
                  </div>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
strelok011, 2019-12-19
@strelok011

In principle, instead of sending data about the checkbox to the form, you can hang a simple script for blocking the submit button on it. disable state. And place it outside the form tag, for example.

S
sashabeep, 2019-12-21
@sashabeep

oO Does anyone else use eForm?
and a CMS called ModX has not existed for several years

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question