Display Entry ID on form user is filling out

By: Andres Garcia | Asked: 10/04/2022
ForumsCategory: General questionsDisplay Entry ID on form user is filling out
Andres Garcia asked 2 years ago
I’ve created a front-end form that allow a user to fill in data for inventory. On, this form, how can I display the current entry id? (Before they even hit submit)
1 Answers
Victor Font answered 2 years ago

If you are adding new inventory items, you can't display the entry id because the entry ID doesn't exist until the form is submitted. If by "fill in data for inventory" you mean they are editing an existing inventory entry, then use the [id] shortcode as the default value for a read only text field or as a text string you display on the form. Don't allow the entry ID to be editable. It will break the connection between the form and its 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