Skip Navigation

[Resolved] Unable to submit form

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 11 replies, has 4 voices.

Last updated by himanshuS 1 year, 11 months ago.

Assisted by: Minesh.

Author
Posts
#2534495

I am having this issue where I can see the form but cannot submit it.

What could be going wrong?

I cleared the cache. Removed caching for the page but still no effect.

Issue link: hidden link
Console errors: hidden link

#2535641

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

I take it that the form is set to submit via ajax, which would account for why JS errors on the page prevent it from submitting.

It's not clear from the screenshot the source of the errors, but they don't appear to be from Toolset.

So the first step would be to test this page in a minimal install, i.e. after disabling non-Toolset plugins, to confirm that it ordinarily works. Then re-activate plugins to try and identify the source of any conflict that produces the errors.

If you let us know what you find we can try to reproduce the problem.

Then, in the meantime, you can switch to submitting the form via page refresh as a temporary workaround.

#2535861

The form is not submitted through AJAX.

I have tried the following:
1. Cleared Cache
2. Disabled caching plugin
3. Tried using AJAX.
4. Removed Cloudflare

None of these work. I am also using WPForms on my site and the form submission works for them.

This is highly unusual. What am I missing?

#2536033

Minesh
Supporter

Languages: English (English )

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

Hi Himanshu - That's really strange.

I do not have any idea based on the recording your shared and I do not see any concrete information that should cause the issue from the console log you shared.

Can you please share problem URL where you added the form as well as admin access details and let me step in and check whats going wrong with your setup.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

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

#2537067

Hi,

Thank you for sharing the access details.

Minesh is on vacation, so I'll be following up on this ticket.

I haven't seen a request for a CSS & JS file like this before, so it most likely has something to do with the custom code snippets used on the website.

If the issue is only happening with Toolset plugins active, have you tried, temporarily disabling the custom code snippets added through the Toolset?

You can disable the code snippet support by adding the following line to your wp-config.php:


define( 'TOOLSET_DISABLE_CODE_SNIPPETS', true );

In case the issue still persists, I'll need your permission to download a clone/snapshot of the website. This will help in investigating this matter on a different server, without affecting the actual production website.

regards,
Waqar

#2537175

Waqar,

I disabled the code snippets but the issue still exists. Would you be able to work on a staging site to troubleshoot the problem?

#2537697

Thanks for writing back.

The staging website can work too, but, I'll need admin access, FTP access, and full permission to make any changes, necessary for the troubleshooting.

I'm setting your next reply as private.

#2538313

Minesh
Supporter

Languages: English (English )

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

I found the reason why form is not get submitted.

This is the form you are using:
=> hidden link

If you see the form you have hide the following fields with CSS:

<div class="form-group hide"  style="display:none;">
		<label>[cred_i18n name='expert-review-requester-email-label']Requester Email[/cred_i18n]</label>
[cred_field field='expert-review-requester-email' force_type='field' class='form-control' output='bootstrap']
  </div>
<div class="form-group hide"  style="display:none;">
		<label>[cred_i18n name='candidate-email-label']Candidate Email[/cred_i18n]</label>
[cred_field field='candidate-email' force_type='field' class='form-control' output='bootstrap']
  </div>
<div class="form-group hide"  style="display:none;">
		<label>[cred_i18n name='candidate-name-label']Candidate Name[/cred_i18n]</label>
[cred_field field='candidate-name' force_type='field' class='form-control' output='bootstrap']
  </div>

Now out of all above fields that you hide using CSS style="display:none;" - the field "Candidate Name" is required field.

If all above fields are not required in your form - I suggest you should just delete those fields from your form and save the form and then it should work.

#2538629

Minesh,

Thank you for solving part 1 of the issue. But the main issue is still there.

I mentioned that in the second scenario where form is submitted is user is not directed to the next page.

All backend processing happens just fine but the page does not follow the guidance for redirection on toolset form.

You can test this at hidden link

This is happening for most forms and I am still getting the following error in console -
GET hidden link net::ERR_NAME_NOT_RESOLVED
hidden link
GET hidden link net::ERR_NAME_NOT_RESOLVED

New threads created by Minesh and linked to this one are listed below:

https://toolset.com/forums/topic/split-unable-to-submit-form-form-not-redirecting/

#2538645

Minesh
Supporter

Languages: English (English )

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

Thank you for confirmation that solution I shared help you to resolve your issue.

But still - I can see you did not removed those fields from your form:
=> hidden link

In addition to that - the original issue reported with this ticket is resolved. I'll split the ticket with your new question. You should mark resolve this ticket. I'll follow-up you with the new ticket.
=> https://toolset.com/forums/topic/split-unable-to-submit-form-form-not-redirecting/

#2538649

My friend,
I did not remove the fields for a reason. I need these fields to show data in email notification. I can't add them to email notification if I don't add them in the form.
I am updating these fields in the backend with cred_save_data before cred_notification trigger hits. This was I am able to email multiple people at once.

The other issue was reported in the ticket and is even bigger because the users are not able to move ahead and use the product. Feel free to create a separate ticket if that is more convenient for you.

#2538653

My issue is resolved now. Thank you!