Skip Navigation

[Cerrado] Submit this form without reloading the page (use AJAX) not working

This support ticket is created hace 3 años, 1 mes. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Etiquetado: 

This topic contains 5 respuestas, has 2 mensajes.

Last updated by Shane hace 3 años, 1 mes.

Assisted by: Shane.

Autor
Mensajes
#1973699

I have a form where i have ticked submit this form without reloading the page (use AJAX)
I have that ticked the page does not refresh which is great and i go to add another entry it does not add(submit) the additional entries.
So it only adds the first one.

If i switch off the option on the form the page refreshes each time and adds each entry
I prefer to to have it refresh as ajax method is much much faster.

Any ideas

Tony

#1973771

Shane
Supporter

Languages: Inglés (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tony,

Thank you for getting in touch.

Can you send me a link to the page where you are having the issue ? Also are the forms in a view ?

I would like to understand the exact context in which you are using the form. Also it would appear that you have multiple forms on the same page.

Please let me know.
Thanks,
Shane

#1974315

Hi Shane
To access the page you will need a login , but i can provide the follwing information
1. The page is a divi page using the text module
2. In the text module i have

<a href="[wpv-post-url item='[wpv-search-term param='parent_planner-event_id']']">Back to [wpv-post-title item='[wpv-search-term param='parent_planner-event_id']']</a>

[cred_form form='add-delegate']

3. The Post Form has this

[credform]

[cred_field field='form_messages' class='alert alert-warning']
<div class="form-group hidden">
<label>Delegate Group Title</label>
[cred_field field='post_title' class='form-control' value='delegate' output='bootstrap' ]
</div>
<div class="form-group">
<label>First Name</label>
[cred_field field='first-name' force_type='field' class='form-control' output='bootstrap']
</div>
<div class="form-group">
<label>Last Name</label>
[cred_field field='last-name' force_type='field' class='form-control' output='bootstrap']
</div>
<div class="form-group">
<label>Delegate Email</label>
[cred_field field='delegate-email' force_type='field' class='form-control' output='bootstrap']
</div>
<div class="form-group">
<label>Email Request</label>
[cred_field field='email-request' force_type='field' class='form-control' output='bootstrap']
</div>
<div class="form-group hidden">
<label>Planner Event</label>
[cred_field field='@delegate-group.parent' class='form-control' output='bootstrap' select_text='--- not set ---']
</div>
[cred_field field='form_submit' output='bootstrap' value='Submit' class='btn btn-primary btn-lg']
[/credform]

css editor has this.
.hidden { display:none}

The settings on Post Form :_

Form Submit Ticked Submit this form without reloading the page (use AJAX)
After visitors submit this form , is set to Keep displaying this form

Hope that helps
Tony

#1974741

Shane
Supporter

Languages: Inglés (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tony,

This seems normal to me so there isn't any issues with the form itself.

I've enabled the private fields for your next response so that you can provide me with access to the site itself as well as a link to the form.

Thanks,
Shane

#1977381

Hi Shane
We are in the process of updating our staging site from apache to litespeed.
So had a delay in repling to you , will hopefully have our site back on monday.
Catch up if all is ok, to deal with the support issue.

Tony

#1978485

Shane
Supporter

Languages: Inglés (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Tony,

I've enabled the private fields for your next response, so you can provide me with the site credentials when you are ready.

Also please send me a link to the page that has the issue.

Thanks,
Shane

El debate ‘[Cerrado] Submit this form without reloading the page (use AJAX) not working’ está cerrado y no admite más respuestas.