Not sure how you would even go about showing this summary without some custom coding.
In the next update there will be 2 JavaScript event (‘wpcf7cf_hide_group’ and ‘wpcf7cf_show_group’) that you can listen to and update your summary accordingly. Would that help?
-
This reply was modified 8 years, 3 months ago by
Jules Colle.
Hello Jules.
Thanks for replying.
Maybe that improvement can help, yes.
What I need is to show only the fields filled in the “last choice” or, failing that, a way to delete the fields filled corresponding to the “not final choice”.
Any thoughts?
When are you planning to release the new update?
Thanks in advance!
Hello.
Any update about this?
Thanks
I’m really confused about your question. Since you mentioned it was the exact same problem as https://wordpress.org/support/topic/how-to-only-show-final-selections-in-mail/
If you only want to show the last values in the email, you could simply only include the values from the last step..
I think I’m misunderstanding completely. Could you explain with some screenshots-muckups what it is exactly that you would like to happen, step by step?
Hello Jules.
Thanks for replying!
Excuse me for my english, it’s no good but I’ll try to make you understand me.
You can take a look at my multi-step contact form in http://traduccioneschino.es/pago-datos-del-proyecto/
Let’s say you choose “Particular” at step 2, you fill the fields and go to step 3.
What I want is to show in the column “Datos de facturacion” only the fields in the group selected at step 2, i.e. hide the empty fields (corresponding to the not selected option).
In this case, as the number and type of fields are similar for both options (“Particular” and “Empresas o autónomos”) I can do a trick and in the step 3 form unify the fields of “Datos de facturacion” like this:
Nombre o razón social: [multiform "name-company"][multiform "name-particular"]
so it’d show the data chosen, but the problem is if the user has first filled in the data of “Particular” and then the data of “Empresa”. That’s why I’d have to find a way to delete the data from the option that isn’t the last one.
How can I solve it?
Sorry for not explaining better and thank you for your interest.
Hi alberto,
This is a feature very specific to multistep forms. It’s gonna be quite some work for me to figure out exactly which action I would need to filter the output so code like this would work:
[group-1][multiform "name-company"][/group-1][group-2][multiform "name-particular"][/group-2]
Please refer the author of multistep form to this thread. I would need to know if there is a filter, similar to the wpcf7_mail_components filter. Or if they are are planning to add a filter like this for the summary. If not, there’s nothing I can do really, and you will need to come up with your own solution, by writing some custom javascript or (not recommended) changing the plugin code
-
This reply was modified 8 years, 3 months ago by
Jules Colle.
Hello Jules.
Sorry for taking so long to respond.
I’ve asked in the Multistep plugin support forum. When I know something about it, I’ll let you know.
Your approach is a good one, but it depends on the author of the other plugin, as you say.
What about deleting the previously chosen data if you make a new choice in the select field?
I think this approach only depends on your plugin code, isn’t it?
Thanks in advance!
That would work for your case, but would be unwanted in some other cases. See this example:
http://bdwm.be/wpcf7cf/questionnaire/
If the answers would be cleared when hidden, you would loose the data. Best to keep it, so people can remove it if they don’t need it. It’s much harder to get the data back after it’s been deleted than simply removing it if you don’t need it 🙂
Hello Jules.
Thanks for replying!
I’m not sure I understand what you’re suggesting…
Using Multi-step everyone can go back and change the previously selected option, s I don’t quite understand how the example you show me can help.
Are the trick in the tags you use like [group g2][group g2sub]?
Regards