Navigation überspringen

[Gelöst] Prepopulate add new post form from existing post

Dieser Thread wurde gelöst. Hier ist eine Beschreibung des Problems und der Lösung.

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 vor 4 Jahren, 4 Monaten. 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: Africa/Casablanca (GMT+01:00)

Dieses Thema enthält 2 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von jamesR-13 vor 4 Jahren, 4 Monaten.

Assistiert von: Jamal.

Author
Artikel
#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!