Skip to content

Instantly share code, notes, and snippets.

@cole007
Created October 20, 2016 13:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cole007/692dc925747ff07136872f096b2a44b0 to your computer and use it in GitHub Desktop.
Save cole007/692dc925747ff07136872f096b2a44b0 to your computer and use it in GitHub Desktop.
{exp:freemember:register form_class="form form--standard"  error_handling="inline" return="account/register/thanks" required="first_name|last_name|email|company|address_1|city|postcode" error_delimiters='<span class="error">|</span>'}
<fieldset>
...
  <h3>Do you want to request a trade account?</h3>
	<div class="form__group form__group--inline">
	  <input type="radio" id="trade-account-yes" name="m_field_id_22" class="form__toggle form__toggle--radio" value="yes" {if '{m_field_id_22}'=='yes'}checked{/if}>
		<label for="trade-account-yes" class="form__label">Yes</label>
	</div>
	<div class="form__group form__group--inline">
	  <input type="radio" id="trade-account-no" name="m_field_id_22" class="form__toggle form__toggle--radio" value="no" {if '{m_field_id_22}'!='yes'}checked{/if}>
		<label for="trade-account-no" class="form__label">No</label>
	</div>
</fieldset>

<fieldset>
  <div class="form__group">
	  <input type="checkbox" id="accept_terms" name="accept_terms" class="form__toggle form__toggle--checkbox">
		<label for="accept_terms" class="form__label form__label--required">I have read and agree to the <a href="/terms-and-conditions">Terms and Conditions</a></label>
		{error:accept_terms}
		</div>
		<div class="form__group">
		  <button type="submit" class="btn">Continue</button>
		</div>
	</fieldset>
...
{/exp:freemember:register}```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment