Sauter la navigation

[Résolu] Fields stopped working

This support ticket is created Il y a 6 années et 2 mois. 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

Ce sujet contient 7 réponses, a 2 voix.

Dernière mise à jour par leilaG Il y a 6 années et 2 mois.

Assisté par: Waqar.

Auteur
Publications
#1136097
form-fields.PNG

Hello, a few of the form fields have stopped working on this form - lien caché

#1136559

Hi Leila,

Thank you for contacting us and I'll be happy to assist.

From looking into the code of the form, it seems that for a number of fields (e.g. "Company Name", "Company Website link", "Location" etc), field labels are available but the actual fields are missing.

Please go to this form's edit screen and see if the shortcodes for these missing fields are included, in the "Content" section.

If they're not, please add the field shortcodes again, using the "Add fields" button from the toolbar.
( screenshot: lien caché )

I hope this helps and let me know how it goes.

regards,
Waqar

#1136633

Yes the fields are still there, in the forms edit screen.

#1136745

Hi Leila,

Thanks for the update.

For troubleshooting the missing fields, I’ll need temporary access (WP-Admin and FTP) to the website, preferably a development or cloned website, where the issue is reproducible.

This access will allow me to offer better help and check if some configurations or code might need to be changed.

Your next answer will be private which means only you and our support team will have access to it.

If you’re going to share the access details for the live/production website, it is very important that a complete backup of your database and website has been made.

I would additionally need your permission to deactivate and reactivate Plugins and the Theme and to change configurations on the site. This is also a reason the backup is really important.

Regards,
Waqar

#1137614

Hi Leila,

Thank you for sharing the access details for the staging website.

During troubleshooting, I noticed that the issue with the missing fields in the forms is fixed when a different theme ("Twenty Seventeen") is activated.

Screenshot with Bridge Child theme:
lien caché

Screenshot with Twenty Seventeen theme:
lien caché

Further testing revealed that script conflict arises with the code in the following file, from the theme:
lien caché

I would recommend getting in touch with the theme author to see if an updated version is available or if the loading of this script file can be restricted, only for the selected admin area screens.

I hope this helps and please let me know if you need any further assistance.

regards,
Waqar

#1137864

Hi Waqar, thanks for the screen shots, I reactivated bridge child theme and all plugins on the staging site and the form fields work - lien caché

I tried this on the live site, but the fields do not work.

We have a similar form - lien caché that is working fine, so how can this be a theme issue?

#1138169

Hi Leila,

Thank you for sharing the update.

Let me explain in a little more detail, why I concluded that its a theme issue.

If you'll visit the edit screen for any of your post forms (e.g. "Submit a job" or "Add your company" etc), with bridge child theme active, you'll find a number of script errors in the browser's console.
( screenshot: lien caché )

As a result, elements which are dynamically controlled through scripts (e.g. the settings to select the post type, edit the email notification, "JS editor" & "CSS editor" tabs etc) do not function as expected.
( screenshot: lien caché )

And in this broken state, if the form is saved, the missing field issue appear on the front-end, which we see at:
lien caché

As a quick fix, you can temporarily switch to a different theme (e.g. Twenty Seventeen) on the live website and save the "Submit a job" form with correct post type (Job) selected and the issue will get fixed, even if you'll switch back to the original bridge child theme.

But as soon as that form will be saved again in the broken state, the issue will come back.

Hope this explanation helps and let me know if you need any further assistance.

regards,
Waqar

#1138399

Thank you so much for the explanation and the quick fix, it worked 🙂

I'll get in touch with the theme developers