How to use the postid to set a default value in a select field?
-
Hello,
I am testing Forminator to replace Caldera, which is being sunsetted by the end of the year. All looks great, with only one thing I can’t figure out how to do it.
With Caldera, I can set a default value for a drop down/select field based on the postid where the form is embedded on. It’s similar to the Pre-populate field from Forminator, except that it can be used for more then just the get variable from a query string, they call it magic tags (see link).
It works like this:
Set the default value of the drop down field to {embed_post:ID}
Enter the postid as the value for each select option.Use case:
I have form to book a course.
The drop down field gives a choice out of 5 courses.
Each course has a details page where the booking form is embedded.
The drop down is pre-populated with the course of that page.
There is also a general booking page where the drop down is not pre-populated.Is there a way to do this with Forminator?
Also, I read somewhere that WPML integration is on the roadmap. Any idea where/when?
Thanks
JPThe page I need help with: [log in to see the link]
- The topic ‘How to use the postid to set a default value in a select field?’ is closed to new replies.