Cheatsheet

Dynamic Forms have many Template Tags available that can be used in the UI. Those tags let you retrieve various dynamic data in order to customize the form behavior.

Field

Retrieve user input from the current form

TagOutput
{field:field_5e5c07b6dfae9}User input
{field:my_field}User input
{field:my_field:false}User input (unformatted)

Fields

Retrieve all user inputs from the current form

TagOutput
{fields}My text: User input
My textarea: User input
My date: 2020-03-01

Get Field

Retrieve ACF field value from database

TagOutput
{get_field:my_field}DB value (current post)
{get_field:my_field:current}DB value (current post)
{get_field:my_field:128}DB value (post:128)
{get_field:my_field:128:false}DB value (post:128 – unformatted)

Get Option

Retrieve option value from database

TagOutput
{get_option:my_option}DB value
{get_option:my_option_array:key}DB value

Request

Retrieve $_REQUEST value

TagOutput
{request:name}$_REQUEST['name']
{request:name:key}$_REQUEST['name']['key']

Query Var

Retrieve query var values

TagOutput
{query_var:name}value
{query_var:name:key}Array value

Form Settings

Retrieve current Form setting

TagOutput
{form}11
{form:ID}11
{form:title}Form
{form:name}form
{form:custom_key}Custom key value

Action Output: E-mail

Last E-mail Action

TagOutput
{action:email:from}Contact <contact@website.com>
{action:email:to}email@domain.com
{action:email:reply_to}email@domain.com
{action:email:cc}email@domain.com
{action:email:bcc}email@domain.com
{action:email:subject}Subject
{action:email:content}Content

E-mail Action Named my-email

TagOutput
{action:my-email:from}Contact <contact@website.com>
{action:my-email:to}email@domain.com
{action:my-email:reply_to}email@domain.com
{action:my-email:cc}email@domain.com
{action:my-email:bcc}email@domain.com
{action:my-email:subject}Subject
{action:my-email:content}Content

Action Output: Post

Last Post Action

TagOutput
{action:post:ID}128
{action:post:post_title}Title
{action:post:admin_url}https://www.acf-extended.com/wp-admin/post.php?post=128&action=edit
{action:post:permalink}https://www.acf-extended.com/my-post
{action:post:post_author}1
{action:post:post_author_data:user_login}login
{action:post:post_author_data:permalink}https://www.acf-extended.com/author/johndoe
See {current:post} for all available tags

Post Action Named my-post

TagOutput
{action:my-post:ID}128
{action:my-post:post_title}Title
{action:my-post:admin_url}https://www.acf-extended.com/wp-admin/post.php?post=128&action=edit
{action:my-post:permalink}https://www.acf-extended.com/my-post
{action:my-post:post_author}1
{action:my-post:post_author_data:user_login}login
{action:my-post:post_author_data:permalink}https://www.acf-extended.com/author/johndoe
See {current:post} for all available tags

Action Output: Term

Last Term Action

TagOutput
{action:term:ID}23
{action:term:post_title}Term
{action:term:admin_url}https://www.acf-extended.com/wp-admin/term.php?tag_ID=23
{action:term:permalink}https://www.acf-extended.com/taxonomy/term
See {current:term} for all available tags

Term Action Named my-term

TagOutput
{action:my-term:ID}23
{action:my-term:post_title}Term
{action:my-term:admin_url}https://www.acf-extended.com/wp-admin/term.php?tag_ID=23
{action:my-term:permalink}https://www.acf-extended.com/taxonomy/term
See {current:term} for all available tags

Action Output: User

Last User Action

TagOutput
{action:user:ID}1
{action:user:user_login}login
{action:user:user_email}user@domain.com
{action:user:user_url}https://www.website.com
{action:user:permalink}https://www.acf-extended.com/author/johndoe
See {current:user} for all available tags

User Action Named my-user

TagOutput
{action:my-user:ID}1
{action:my-user:user_login}login
{action:my-user:user_email}user@domain.com
{action:my-user:user_url}https://www.website.com
{action:my-user:permalink}https://www.acf-extended.com/author/johndoe
See {current:user} for all available tags

Current Post

Retrieve current post data (where the form is rendered)

TagOutput
{current:post}128
{current:post:ID}128
{current:post:post_date}2020-03-01 20:07:48
{current:post:post_date_gmt}2020-03-01 19:07:48
{current:post:post_content}Content
{current:post:post_title}Title
{current:post:post_excerpt}Excerpt
{current:post:permalink}https://www.acf-extended.com/my-post
{current:post:admin_url}https://www.acf-extended.com/wp-admin/post.php?post=128&action=edit
{current:post:post_status}publish
{current:post:comment_status}closed
{current:post:ping_status}closed
{current:post:post_password}password
{current:post:post_name}name
{current:post:to_ping}
{current:post:pinged}
{current:post:post_modified}2020-03-01 20:07:48
{current:post:post_modified_gmt}2020-03-01 19:07:48
{current:post:post_content_filtered}
{current:post:post_parent}0
{current:post:guid}https://www.acf-extended.com/?page_id=128
{current:post:menu_order}0
{current:post:post_type}page
{current:post:post_mime_type}
{current:post:comment_count}0
{current:post:filter}raw
{current:post:post_author}1
{current:post:post_author_data:ID}1
{current:post:post_author_data:user_login}login
{current:post:post_author_data:user_pass}password_hash
{current:post:post_author_data:user_nicename}nicename
{current:post:post_author_data:user_email}user@domain.com
{current:post:post_author_data:user_url}https://www.website.com
{current:post:post_author_data:permalink}https://www.acf-extended.com/author/johndoe
{current:post:post_author_data:admin_url}https://www.acf-extended.com/wp-admin/user-edit.php?user_id=1
{current:post:post_author_data:user_registered}2020-02-22 22:10:02
{current:post:post_author_data:user_activation_key}
{current:post:post_author_data:user_status}0
{current:post:post_author_data:display_name}John Doe
{current:post:post_author_data:nickname}JohnDoe
{current:post:post_author_data:first_name}John
{current:post:post_author_data:last_name}Doe
{current:post:post_author_data:description}Lorem ipsum dolor sit amet, consectetur adipiscing elit.
{current:post:post_author_data:rich_editing}true
{current:post:post_author_data:syntax_highlighting}true
{current:post:post_author_data:comment_shortcuts}false
{current:post:post_author_data:admin_color}fresh
{current:post:post_author_data:use_ssl}1
{current:post:post_author_data:show_admin_bar_front}true
{current:post:post_author_data:locale}
{current:post:post_author_data:wp_capabilities}a:1:{s:13:”administrator”;b:1;}
{current:post:post_author_data:wp_user_level}10
{current:post:post_author_data:dismissed_wp_pointers}
{current:post:post_author_data:show_welcome_panel}1

Current Term

Retrieve current term data (where the form is rendered)

TagOutput
{current:term}23
{current:term:ID}23
{current:term:term_id}23
{current:term:name}Term
{current:term:slug}term
{current:term:permalink}https://www.acf-extended.com/taxonomy/term
{current:term:admin_url}https://www.acf-extended.com/wp-admin/term.php?tag_ID=23
{current:term:term_group}0
{current:term:term_taxonomy_id}23
{current:term:taxonomy}taxonomy
{current:term:description}Content
{current:term:parent}0
{current:term:count}0
{current:term:filter}raw

Current User

Retrieve currently logged user data

TagOutput
{current:term}23
{current:term:ID}23
{current:term:term_id}23
{current:term:name}Term
{current:term:slug}term
{current:term:permalink}https://www.acf-extended.com/taxonomy/term
{current:term:admin_url}https://www.acf-extended.com/wp-admin/term.php?tag_ID=23
{current:term:term_group}0
{current:term:term_taxonomy_id}23
{current:term:taxonomy}taxonomy
{current:term:description}Content
{current:term:parent}0
{current:term:count}0
{current:term:filter}raw

Current Post Author

Retrieve current post author data (where the form is rendered)

TagOutput
{current:author}1
{current:author:ID}1
{current:author:user_login}login
{current:author:user_pass}password_hash
{current:author:user_nicename}nicename
{current:author:user_email}user@domain.com
{current:author:user_url}https://www.website.com
{current:author:permalink}https://www.acf-extended.com/author/johndoe
{current:author:admin_url}https://www.acf-extended.com/wp-admin/user-edit.php?user_id=1
{current:author:user_registered}2020-02-22 22:10:02
{current:author:user_activation_key}
{current:author:user_status}0
{current:author:display_name}John Doe
{current:author:nickname}JohnDoe
{current:author:first_name}John
{current:author:last_name}Doe
{current:author:description}Lorem ipsum dolor sit amet, consectetur adipiscing elit.
{current:author:rich_editing}true
{current:author:syntax_highlighting}true
{current:author:comment_shortcuts}false
{current:author:admin_color}fresh
{current:author:use_ssl}1
{current:author:show_admin_bar_front}true
{current:author:locale}
{current:author:wp_capabilities}a:1:{s:13:”administrator”;b:1;}
{current:author:wp_user_level}10
{current:author:dismissed_wp_pointers}
{current:author:show_welcome_panel}1