Explained - Show Clearly When a User is Already Logged in When Submitting a Form
1 - How to show that someone is logged in
{%- if context.exports.is_logged_in.data == true -%}
<p>Hi {{ session.current_user.name }}! <a href="/logout">(not you?)</a></p>
{%- endif -%}
2 - How to allow updating of existing user name
{% if context.exports.is_logged_in.data -%}
readonly value="{{ session.current_user.name }}"
{% endif %}PreviousExplained - Preventing Spam Form Submissions and CaptchasNextForms Error Callback and Validation
Last updated
Was this helpful?

