Hello @cleverframes,
Thanks for the feedback! Yeah, I know, I need to write tutorials and documentation to explain further more Dynamic Forms, but for the moment I’m heavily focused on feature implementations.
I try to keep the UI as clean and self-explanatory as possible, but I can understand that sometimes it isn’t very clear, especially for advanced modules like Dynamic Forms.
It looks like you struggle with template tags usage, so here are some explanations ??
The fields label / name / key is a concept you should understand before going deeper into ACF. Here is how to it works. Every field you create, has the following basic informations:
– Label: This is the field “title” which is printed on the admin/front screen above the input. Ie: “My Field Label”
– Name: This is a readable “slug” of the “title”. You can customize it during field creation, it is used for internal/advanced purpose (not displayed to user) and is often displayed as: my_field_name
(lowercase, underscores instead of spaces).
– Key: This is a unique identifier of your field. It is automatically created by ACF for internal/advanced purpose (not customizable). It is displayed as: field_abcdef123456
Here is a screenshot of a field with those 3 settings: https://i.imgur.com/i28ukKi.png
Note that you can only customize “Label” & “Name”, and not “Key”. Most of the time, when you’ll work with fields, you will rely on “Name”, because they are more readable than “Keys”. Simple PHP usage example: the_field('my_field_name');
In ACF Extended: Dynamic Forms, you will display those fields inside a form to your visitors. In order to interact with user input in those fields, you can use the following template tags: {field:my_field_name}
and {field:field_abcdef123456}
in your actions.
As I said earlier, you should rely on my_field_name
(field name), because it is more readable than keys.
In your case, inside your “Create Post” Action, you can use this tags to print the user input. Example, inside Post Title
set the value: {field:first_name} {field:last_name}
.
Here is a screenshot of a form configuration that should look like yours: https://i.imgur.com/sOOycFQ.jpg
Note that at the bottom of your Dynamic Form, you’ll find a summary of all the fields you can use as template tags, with Label / Names / Keys columns. In this example:
First Name | first_name
| field_abcdef123456
Last Name | last_name
| field_abcdef123456
Hope you understand it better now ??
PS: It is possible to redirect the user to the newly created post after the submission. If that’s something you want to do, just let me know, I’ll write a little tutorial for you.
Regards.