Issue Pre-Filling Form Fields When Editing a Post via post_id Parameter
Hi Fluent Forms team,
I’m building a custom solution using Fluent Forms Pro + JetEngine.
I’ve created a custom post type called “Aluguel”, and I’m using Fluent Forms to allow users to create new posts from the frontend — and that part is working perfectly.
Now I’m trying to allow users to edit their existing posts using a second Fluent Form. Here’s how it’s set up:
- I have a Listing Grid showing all posts created by the user
- Each post has an “Edit” button that links to a page like:
https://mysite.com/editar-anuncios/?post_id=1990 - On that page, I’ve placed another Fluent Form
- There is a hidden field named
post_id, with dynamic value{query.post_id} - I’m also using a PHP hook to pass
post_idto thesubmission_insert_datato force Fluent Forms to update the post
(this part works fine — the post is updated)
✅ The problem:
The form fields are NOT pre-filled with the current post data, even though the
post_idis correctly passed and received.
Fluent Forms is updating the correct post, but the fields are blank when the form loads. I expected the values from the post (like title, content, and meta fields) to populate the form automatically based on post_id, but that’s not happening.
❓What I need:
Is there a built-in way to pre-fill form fields from a post using the post_id in the query string?
If not, is there an official method or hook (like fluentform_rendering_field_data) to dynamically load post data into each field?
🔧 Already implemented:
post_idis passed via{query.post_id}- Hidden input is present and working
fluentform_submission_insert_datais in place and updates the post correctly- All field meta keys match those in JetEngine
Thanks in advance for your help — I’m committed to using Fluent Forms for the entire workflow and hope there’s a clean solution to this.
Best regards,
Saulo