How can I get a specific value from the submitted form? E.g. the fullName field.
The default template loops through all the fields with a switch but I just want to output one specific field. Can't get it to work.
Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. It only takes a minute to sign up.
Sign up to join this communityHow can I get a specific value from the submitted form? E.g. the fullName field.
The default template loops through all the fields with a switch but I just want to output one specific field. Can't get it to work.
You can get the value of a specific field by using
{{ submission.fieldHandle }}
E.g.
{{ submission.fullName }}
Have never used the plugin before, but according to their documentation, it should just be:
{% set form = craft.amForms.getForm('yourFormHandle') %}
{{ form.displayField('fullName') }}