Skip Navigation

[Resolved] Advice on how to best submit with ajax…

This support ticket is created 5 years, 2 months ago. 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.

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

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 10 replies, has 2 voices.

Last updated by Minesh 5 years, 1 month ago.

Assisted by: Minesh.

Author
Posts
#1346729

Tell us what you are trying to do?
Currently I have an create form and edit form for a custom sub builder which uses some basic jquery to auto submit with each change. The reason for this is because some of the options available are dependent and the visual builder on the left of the form needs to be updated so the user can see the change. And of course, we want every single change the user makes to be recorded on the backend, in the CPT they created.

This auto submit works fine, but it's not smooth enough, so I'm thinking Ajax could improve that. I know you have Ajax options for forms and views, but I'm not sure how to apply it to what I want here.

Is there any documentation that you are following?
I tried one idea, which was to use "Submit this form without reloading the page (use AJAX)", but that definitely didn't work for me. The subwoofer design didn't update and the fields in the form disappeared. This prompted me to disable all my custom javascript, but it still happened.

Is there a similar example that we can see?
Compare this...
hidden link

To what I'm building with Toolset...
hidden link

What is the link to your site?
hidden link

I need your IP Address to whitelist you.

#1347097

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

As I understand - you wanted to build such a form where you display some customization option on right part of the form and as per the selection of those options you wanted to update the left part and at last you wanted to save the form.

There is no such feature available using which you can build such a customized form. To build such customized form it will need custom programming that is unfortunately beyond the scope of our support policy.

When you set the form to submit with ajax - it will submit the form with all fields added within and display the success message or form or redirect to the page/post as per your forms settings but there is no option to refresh the content that is added to your another part of the page.

#1347461

Thanks Minesh,

I have already built this customized form. I'm not looking for custom programming, just advice on what is already available. The content (result) exists in a Toolset Content Template for the Form and it's already working, such that it updates appearance on submit.

Just so I understand, you're saying that there is no way to make the ajax submit apply to an entire Content Template? If so, can I rebuild information that's currently in the template to show in the form, and get this result?

It might be easier for you to take a look at what I have right now. If you send me your IP address I can whitelist you on the test.ddaudio.com site.

#1347761

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Here is my IP: 110.172.162.220

#1348261

Hi Minesh,

Your IP has been whitelisted. Again the Custom Subwoofer Builder is here...
hidden link

If you need admin access, I have the information for a new account available upon request.

#1348641

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

It looks like my I've dynamic IP setup. When I logged in today, my IP changed to this: 110.172.162.221 and maybe if I will connect it, it might change again.

You need to revoke IP restriction for now. you may set authorization access and share the password.

I have set the next reply to private which means only you and I have access to it.

#1348671

Sorry, not going to open up the site like that at this time, I've added your current IP to the htaccess.

#1348915

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I still can not able to access the page you shared. I can only see white page with the following error messages:

You don't have permission to access /subcustomizertestpage/ on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
#1349525

Hi Minesh, we have widened the IP restriction parameters. You should now be able to access the page. Will you please let me know when the reply is again set to private so I can send you the information.

#1349881

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

I have set the next reply to private which means only you and I have access to it.

#1351409

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Ok - finally, I can access the site now and I can see the form on frontend and when I made a change to one of the dropdown box "Sub Series" it creates a new entry for the post type "Custom Subs" and then it offers the following Edit form:
=> hidden link

I would like to know what exactly is not working and what exact steps I need to follow to see the issue and from where the left part is get updated?