Cornerstone Forms Dynamic Content
Form data is dynamic, and Cornerstone Forms dynamic content helps you out.
Form Based
{{dc:form:id}}
When an element is inside a form, you can use this to get the ID of the form.
{{dc:form:submitted_id}}
When a form is submitted this will get the ID of the submitted ID. It is not guranteed to be the same ID as the {{dc:form:id}} if another form is on the page.
{{dc:form:errors}}
This is an array of all form errors.
{{dc:form:data key="INPUT_NAME"}}
{{dc:form:number_of_submissions formID="FORM_ID"}}
Leaving the Form ID empty will result in the current form ID in your elements hiearchy to be used.
Actions Based
{{dc:action:response}}
Certain actions can return data. When you have an inner Action you can utilize this data via the Dynamic Content {{dc:action:response}}
You can also go up the action tree via the depth argument.
{{dc:action:response depth="1"}} # This would be the action response of the parent of the last actionFile Based
{{dc:file:upload name="INPUT_NAME"}}
{{dc:file:all}}
This is an array of all files uploaded.
Nonce Based
Nonce's help prevent unwanted spam by checking if a form submission actually visited your page with the form on it.
{{dc:nonce:create action="YOUR_ACTION_NAME"}}
Whatever you use for the action argument should be used for the verify dynamic content.
{{dc:nonce:verify action="YOUR_ACTION_NAME" value="NONCE"}}
If you leave value blank it will use _wpnonce as it's value.
See something inaccurate? Let us know