Helper shortcodes available in Fluent Forms
Fluent Forms has a wide range of attributes of the helper shortcode which can be used to take the form a step further. The helper shortcodes and all of its attributes are listed below
// submission_count | created_at | updated_at | payment_total
Show the form info including total submission, when the form is created and updated and total payment received if it’s a payment form.
Total Submission: Use the shortcode as
[fluentform_info id="354" info="submission_count"]
and it will show total submission at the bottom of the form.
Created at: This shortcode parameter will show the date the form is created. Example shortcode:
[fluentform_info id="354" info="created_at"]
and the creation date will be shown below the form.
The same way you can show the form update date and total payment using updated_at and payment_total attribute.
Date Formatting: You can format the date using all available date formatting from here. For example, if you want to print something like “Friday 17 April 2020 10 AM” then you will need to write a customized parameter like this. date_format=”l d F Y g A”.
So the final shortcode will be:
[fluentform_info id="354" date_format="l d F Y g A" info="created_at"]
which will output the the creation time in above customised format.
Submissions Based On Entry Status:
WP Fluent Forms has two state for each entries. Read and Unread.
You can show total submissions based on the status. You can show all or the entries with read status or unread status.
Show all Entries:
[fluentform_info id="354" status="all"]
Show Entries with Read Status:
[fluentform_info id="354" status="read"]
Show Entries with Unread Status:
[fluentform_info id="354" status="unread"]
Entries which has been moved to trash can be excluded or included while showing the total submission.
Exclude Trashed Entries:
[fluentform_info id="354" with_trashed="no"]
Include Trashed Entries:
[fluentform_info id="354" with_trashed="yes"]
Fluent Forms has the feature to limit total number of times the form can be submitted. If you have an application and you want to take only 20 applicant this feature will show how many more times the form can be submitted or how many sit left in other words.
At first turn on the maximum limit from the form settings.
Now use the shortcode [fluentform_info id=”354″ info=”submission_count” substract_from=”20″]
This will show the number of submissions remaining below the form.
So total 17 submissions remaing and three is already submitted. You can also hide the form when all submission is done. To do this use another parameter “hide_on_zero” = “yes” inside the shortcode.
So the final shortcode will be –
[fluentform_info id="354" info="submission_count" substract_from="20" "hide_on_zero"="yes"]
Show Total Entries Based on Payment Status:
Fluent Forms has three status for the payment forms. Those are paid, pending, failed.
You can filter the total number of entries based on those three payment statuses or you can show all.
[fluentform_info id="354" payment_status="all"]
Only Show Total Paid Payments:
[fluentform_info id="354" payment_status="paid"]
Only Show Total Pending Payments:
[fluentform_info id="354" payment_status="pending"]
Only Show Total Failed Payments:
[fluentform_info id="354" payment_status="failed"]
You can also show formatted currency by adding an extra parameter currency_formatted = “yes” inside the shortcode.