[memb_registration_form]

Version Added v2.44.21

Summary

This shortcode provides a safe and secure way to enable new user signups and allow them to securely choose their own passwords. The form only appears to visitors who are not logged in.

Shortcode Examples

Simple Registration Form

[memb_registration_form success_url="/next-page/"]
<p>First Name: <input name="first_name" required="required" type="text"></p>
<p>Email: <input name="email" required="required" type="email"></p>
<p>Password: <input name="password" required="required" type="password"></p>
<p><input type="submit"></p>
[/memb_registration_form]

Fancier Registration Form

[memb_registration_form success_url="/welcome/" tag_id="gold,newuser" autologin="yes"]
<p>First Name: <input name="first_name" required="required" type="text"></p> 
<p>Email: <input name="email" required="required" type="email"></p> 
<p>Password: <input name="password" required="required" type="password"></p>
<p>Confirm Password: <input name="Password_confirmation" required="required" type="password"></p>
<p><input type="submit" value="Register Now"></p>
[/memb_registration_form]

Adding checkbox, radiobox and dropdown (select) elements in the form:

[memb_registration_form success_url="/welcome/" tagids="gold,newuser" autologin="yes"]
<p>Name: <input type="text" required="required" name="FirstName"></p>
<p>Email: <input type="email" required="required" name="Email"></p>
<p>Password: <input type="password" required="required" name="Password"></p>
<p>Confirm Password: <input type="password" required="required" name="Password_confirmation"></p>
<p><input type="radio" name="FieldName" value="ValueToBeSavedinActiveCampaign">First radiobutton example</p>
<p><input type="radio" name="FieldName" value="ValueToBeSavedinActiveCampaign">Second radionbutton example</p>
<input type="checkbox" name="FieldName" value="ValueToBeSavedinActiveCampaign">First checkbox example<br>
<input type="checkbox" name="FieldName" value="ValueToBeSavedinActiveCampaign">Second checkbox example<br>
<p><select name="FieldName">
  <option value="ValueToBeSavedinActiveCampaign">Value to be displayed on the site</option>
  <option value="ValueToBeSavedinActiveCampaign">Value to be displayed on the site</option>
  <option value="ValueToBeSavedinActiveCampaign">Value to be displayed on the site</option>
</select></p>
<p><input type="submit"></p>
[/memb_registration_form]

Shortcode Parameters

autologin:  Set to yes to autologin the user after successful registration.  Defaults to no.

date_fields:  A comma separated list of the fields used to store date information, so that Memberium can convert these fields to the date/time format that ActiveCampaign needs.  Optional, only required if you’re using date fields.

failure_url:  The URL to redirect to if the signup fails.  Optional.  Defaults to the current page.

form_id:  The CSS ID to use for the form.  Optional.  Defaults to a system generated CSS value.

pass_fields:  Whether to pass the form fields to the next page.  By default this is disabled.  Set this to a non-zero value to enable this  feature.  By default, the password is not passed to the next page.

pass_password:  Whether to include the password in the fields passed to the next page.  By default this is false.  Set this to a non-zero value to enable this  feature.  If pass_fields is not enabled, then this setting has no effect.

required_fields:  A comma separated list of fields that must be populated in order to complete processing the form.  This is a server side check, and does not replace any JavaScript or HTML form validity checks you may wish to use.

success_url: The URL to redirect to if the signup is successful.  Optional.  Defaults to the current page.

tag_id:  A comma separated list of tags to apply if the signup is successful.

Shortcode Attributes

Conditional: No (?)
Nestable: No (?)
Accepts formatting: Yes* (?)
Capturable: No (?)