Fresh Hope Contact Subscription Settings
{% set currentrecord = entities.contact[request.params[‘id’]] %}
{% form entity=”contact” mode=”edit” parameter_name=”id” record=currentrecord required=[“donotbulkemail”] %}
{% if (not form.submission) and (not form.status) %}
Please tick to subscribe (or untick to opt out) and submit to modify your subscription settings:
{% elseif form.submission and form.status %}
{{ form.parameters.messages.success ?? “
Thank you for your Submission.
Your subscription settings have been updated.
” }}
{% elseif form.submission and (not form.status) %}
{% if form.parameters.messages.error %}
{{ form.parameters.messages.error }}
{% else %}
{% for descriptor, message in form.errors %}
Submit error: {{ message|join(‘, ‘) }}
{% endfor %}
{% endif %}
{% endif %}
{% endform %}