Forums

The form works well in test mode, but does not work on the site. What to do?

pro-alena@yandex.ru 27 Nov, 2018
The form works well in test mode, but does not work on the site. What to do? http://na-veka.spb.ru/obratnaya-svyaz.html

Uncaught TypeError: Cannot read property 'forms' of undefined
at Object.$.G2.forms.ready (g2.forms.js:505)
at HTMLFormElement.<anonymous> (obratnaya-svyaz.html:68)
at HTMLBodyElement.dispatch (jquery.min.js?fea57cab5794fbeb1fc3142878a6df11:2)
at HTMLBodyElement.v.handle (jquery.min.js?fea57cab5794fbeb1fc3142878a6df11:2)
at Object.trigger (jquery.min.js?fea57cab5794fbeb1fc3142878a6df11:2)
at Object.a.event.trigger (jquery-migrate.min.js?fea57cab5794fbeb1fc3142878a6df11:2)
at HTMLFormElement.<anonymous> (jquery.min.js?fea57cab5794fbeb1fc3142878a6df11:2)
at Function.each (jquery.min.js?fea57cab5794fbeb1fc3142878a6df11:2)
at a.fn.init.each (jquery.min.js?fea57cab5794fbeb1fc3142878a6df11:2)
at a.fn.init.trigger (jquery.min.js?fea57cab5794fbeb1fc3142878a6df11:2)
GreyHead 28 Nov, 2018
Hi pro-alena,

I think that is because you have a submit button that is not inside <form> tags

Bob
pro-alena@yandex.ru 28 Nov, 2018
And how to make the form call button does not fall out of the form?
healyhatman 28 Nov, 2018
Yeah I don't see how that could be the problem in v6.

What PHP version are you using?

Can you open the form directly? As in click the preview button, and then remove the /administrator from the url.
healyhatman 29 Nov, 2018
Take a form backup and upload it here if you can
pro-alena@yandex.ru 29 Nov, 2018
the backup form[file=http://na-veka.spb.ru/index.php?option=com_chronoforms6&cont=manager&chronoform=porazmeram01]the backup form[/file]
pro-alena@yandex.ru 29 Nov, 2018
http://na-veka.spb.ru/porazmeram01_29_Nov_2018_12_18_18.cf6bak
healyhatman 29 Nov, 2018
When you say it "does not work", what exactly do you mean? Because from looking at it it does open but for some weird reason you have your Display Section action just showing section Two, which only has a button.

EDIT: Ignore that
healyhatman 29 Nov, 2018
I think it might be your gallery you have just under the form - it has form elements and inputs and is probably conflicting. Try removing it.
pro-alena@yandex.ru 29 Nov, 2018
http://na-veka.spb.ru/politika-konfidentsialnosti/informatsiya-o-kukakh.html
Made a page without a gallery. Not help.
healyhatman 29 Nov, 2018
Midnight. Think more tomorrow but the form works on my site no problems
pro-alena@yandex.ru 29 Nov, 2018
Perhaps some plugin is not updated... Counters do not affect the display of the page.
GreyHead 29 Nov, 2018
Hi pro-alena,

You are getting the JavaScript error because your Submit button is not inside <form> tags. See the second line of the HTML below.
<div class="semanticui-body G2-joomla chronoforms  index">
<button data-events="[]" class="ui button green" type="submit" name="button9" id="button9" value="">Заказать</button>
<div class="ui form">
</div>
<div class="ui fullscreen modal form-display-section1">
<i class="close icon red"></i>
<div class="header">Окно 01</div>
<div class="scrolling content" style="width:auto;">
<form action="http://na-veka.spb.ru/politika-konfidentsialnosti/informatsiya-o-kukakh.html?chronoform=porazmeram01&amp;event=submit" method="post" name="display-section1" id="display-section1" data-id="display-section1" class="ui form G2-form" data-valloc="inline" enctype="multipart/form-data" data-dtask="send/self" data-result="replace/self" data-subanimation="1">
<p>Просто оставьте свои контактные данные, и мы позвоним Вам в ближайшее время </p>
<div class="two fields" id="area_fields_13">
<div class="field ">
<label for="name">Ваше имя:</label>
<input data-events="[]" placeholder="Введите Ваше имя" name="name" id="name" value="" type="text">
</div>
<div class="field ">
<label for="phone_id">Ваш телефон:</label>
<input data-validationrules="{&quot;identifier&quot;:&quot;phone_id-main&quot;,&quot;rules&quot;:[{&quot;type&quot;:&quot;required&quot;,&quot;prompt&quot;:&quot;+9(999)999-9999&quot;}]}" data-validate="phone_id-main" data-events="[]" data-inputmask="'mask': '+9(999)999-9999'" placeholder="+9(999)999-9999" name="phone" id="phone_id" value="" type="text">
</div>
<div class="field ">
<label for="email">Ваш e-mail:</label>
<input data-validationrules="{&quot;identifier&quot;:&quot;email-main&quot;,&quot;optional&quot;:true,&quot;rules&quot;:[{&quot;type&quot;:&quot;email&quot;,&quot;prompt&quot;:&quot;\u0412\u0430\u0448 e-mail:&quot;}]}" data-validate="email-main" data-events="[]" placeholder="" name="email" id="email" value="" type="text">
</div>
</div>
<p>Нажимая кнопку ОТПРАВИТЬ Вы соглашаетесь на обработку персональных данных в соответствии с <a href="/index.php/politika-konfidentsialnosti" target="_blanc">Политикой конфиденциальности</a>
</p>
<button data-events="[]" class="ui button blue" type="submit" name="button6" id="button6" value="">Отправить запрос</button> </form>
</div>
</div>
</div>
Bob
healyhatman 29 Nov, 2018
But it works on mine Bob. He's got it set as a modal form which is why you're seeing that button outside the form tag.

Has to be something on your server or on the page you're on all I could suggest is either disabling plugins or trying a different theme maybe
This topic is locked and no more replies can be posted.