Passer la navigation

[Résolu] Prepopulate add new post form from existing post

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:
Prepopulate create post forms from an existing post.

Solution:
To prepopulate a form from another post, you will need to add the form using the shortcode instead of the Toolset form block. Using the shortcode you can pass the "template/model" post using the post attribute, where you pass the ID of the post. Something like:

[cred_form form="New Car" post="145"]

Relevant Documentation:
https://toolset.com/documentation/programmer-reference/forms/cred-shortcodes/#cred_form

This support ticket is created Il y a 4 années et 6 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

Fuseau horaire du supporter : Africa/Casablanca (GMT+01:00)

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

Dernière mise à jour par jamesR-13 Il y a 4 années et 6 mois.

Assisté par: Jamal.

Auteur
Publications
#1907159

Tell us what you are trying to do?

Prepopulate add new post form from existing post

#1907409

Hello and thank you for contacting the Toolset support.

To prepopulate a form from another post, you will need to add the form using the shortcode instead of the Toolset form block. Using the shortcode you can pass the "template/model" post using the post attribute, where you pass the ID of the post. Something like:

[cred_form form="New Car" post="145"]

Read more about the Forms shortcodes here https://toolset.com/documentation/programmer-reference/forms/cred-shortcodes/#cred_form

I hope this helps. Let me know if you have any questions.

#1909467

My issue is resolved now. Thank you!