Support Forum
Hi
I have the following shortcode
[mb_frontend_form id="dc-product-test" post_id="1" submit_button="Submit" ajax="true"]
I was wondering is it possible to update the post_id of the rendered form to "0" or something else if a user clicks on a button inside the DOM.
I am assuming there is not a clean way to do this. I want to do this so i can change the post_id to be "0". So if a user clicks on a 'duplicate' button it will create a new post with the same data rather than updating the existing post. it was just a quick way for users to duplicate listings on my website if they are on a post edit screen page.
thanks