Skip to main content
Activation variables
Variable Description
first_nameInput field for first name e.g. {% text_field "first_name", class:"text" % %}
last_nameInput field for last name e.g. {% text_field "last_name", class:"text" %}
activation_codeUnique activation code passed through activation form e.g. <input type="hidden" name="activation[activation_code]" value="{{ activation.activation_code }}" />
submitted_addressInput field for address e.g. {% text_field "submitted_address", class:"text" %}
passwordInput field for password e.g. {% password_field "password", class:"text" %}
password_confirmationInput field for password confirmation e.g. {% password_field "password_confirmation", class:"text" %}
is_address_neededChecks if address is required for activation e.g. {% if activation.is_address_needed %}
is_mobile_neededChecks if a mobile phone is required for activation e.g. {% if activation.is_mobile_needed %}
mobile_numberInput field for mobile phone number e.g. {% text_field "mobile_number", class:"text" %}
mobile_opt_inCheckbox for text message opt-in e.g. {% check_box "mobile_opt_in", class:"check_box" %}
mobile_opt_inCheckbox for text message opt-in e.g. {% check_box "mobile_opt_in", class:"check_box" %}
Example form

These variables could be used together in the activation form like this: