How can I get the post_id from a desired form and entry?

By: Farshad N | Asked: 10/22/2023
ForumsCategory: General questionsHow can I get the post_id from a desired form and entry?
Farshad N asked 1 year ago
I need to obtain the post_id of a post created by a form, in this case from the last entry submitted by the current user. I tried to do this by creating a hidden field with [post_id] as the default value. Then referencing it with
[frm-field-value field_id=x user_id=current]
where x is the id of the hidden field containing [post_id]. But it doesn't work: the [post_id] fields remain empty within the submitted entries, although the [post_id] shortcode works fine in the Views. This seems too simple to need coding. What is the intended way to do it?  
1 Answers
Farshad N answered 1 year ago

Found the hook:https://formidableforms.com/knowledgebase/frm_after_create_entry/#kb-save-the-id-of-created-post-in-a-field Though I'm curious why it isn't already implemented as a feature to process [post_id] and the such within the fields.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right