I have created a post form to edit a post. The post data can be changed and I want to save the changed data into an new post rather than update the current post. Is this possible?
Or can I fill a new post form with data from another record to create a new record with te filled in data?
Please advise
Thanks
Ron
Dear Ron,
There isn't such kind of feature within Toolset Forms plugin, one post form can handle one post at the same time, so after user submit the editing post form, it can edit only one post.
And it is possible populate the new post form with data from another record, for example, you can try these:
1) In the single post content, you can setup the a HTML link to pass the existed post data as URL parameter values, for example:
<a href="<em><u>hidden link</u></em>;">Create a new post with current post's data</a>
2) Setup a post form for creating new post, edit those form fields, there is an option "Set default value from an URL parameter", you can use it to setup the correspondent URL parameter name, see screenshot: URL-parameter.JPG
More help:
https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_field
urlparam. Optional. A URL parameter to set default value.
Hi, thanks for the quick answer, I managed it to make it work like you have subscribed. The form values are filled bij the URL parameters. Is there any way to make it work wit the POST method rather than te GET method?
No, there isn't such kind of built-in feature within Toolset, you will consider custom codes, for example, create a shortcode with PHP function:
https://codex.wordpress.org/Shortcode_API
In your custom PHP function, output the POST variable value.
hidden link
And use above shortcode in option "Field default option", see the same screenshot:
https://toolset.com/wp-content/uploads/2019/11/1395115-URL_parameter.jpg
More help:
https://toolset.com/documentation/user-guides/cred-shortcodes/#cred_field
value. Optional. Preset value