[Résolu] using form Conditional Display don't capture all data
This support ticket is created Il y a 3 années et 3 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.
Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.
I am trying to: use form Conditional Display and save data to the DB
Link to a page where the issue can be seen: lien caché
I expected to see:
all the data fields populated into the form
Instead, I got: partial data from the form is saved into the created post
Without form Conditional Display when submitting the form, the data is saved correctly into the DB with all the populated fields
See "full form 1.jpg" with all the data and "form without Conditional Display.jpg" for the form layout
When using Conditional Display and submitting the form, only data from the last fields display on the form are inserted into the DB.
See image "form with Conditional Display.jpg"
The data from the hidden fields (after they were populated) are not been captured.
see "CPT missing data.jpg"
my goal is to create a form with a few steps (more then 2) to fill in the data. the Conditional Display seems like an interesting solution but it have this bug as well as the limitation of the max number of steps available to display the form fields, two (2 - as I understand it).
Les langues: Anglais (English )Espagnol (Español )
Fuseau horaire: Europe/London (GMT+00:00)
Hi David
Are you saying that if a form includes some fields which the user completes, then another field selection hides those previously completed fields, then those hidden fields do not get submitted with the form and the data is lost?
If that's the case, then it is expected, fields which are not visible when the form is submitted are not saved.
The goal here is to create a multi-step form, is that correct?
Thanks Nigel,
Yes you understand the issue I have very well.
ok, so if this is an expected behavior I get it. I didn't see this documented or I overlooked it if it is.
what about a solution like lien caché
the question is will the hidden fields will be omitted as well with this method.
I understand the implementation described in the proposed solution but its very cumbersome for large forms (I have lots of data to collect...).
I guess there must be a way to use one form with displaying on the screen just the grouped questions, when a user click next scroll down to another section on the page where another fields group is displayed. this way the user is not redirected to another page for each grouped fields and can go back in the form. this might require some CSS and JS.
Do you know of such implementation or can point me in the right direction that will be great.