[memb_registration_form]
OTHER DOCS Available
Summary
This shortcode provides a safe and secure way to enable new user signups and allow them to securely choose their own passwords.
When someone registers, Memberium will create a record in ActiveCampaign and WordPress automatically. If the user already exists in ActiveCampaign, you can use the allow_existing parameter below to allow the registration. In that case, Memberium will still create a WordPress record and link it to the existing ActiveCampaign record.
The form will only appear to site 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 checkboxes, radio boxes, and dropdown (select) elements that sync to ActiveCampaign in the form:
[memb_registration_form success_url="/welcome/" tag_id="gold,newuser" autologin="yes"] <p>Name: <input type="text" required="required" name="first_name"></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]
Multiple select fields example:
[memb_registration_form] <input name="CustomField[]" type="checkbox" value="dallas" />Dallas <input name="CustomField[]" type="checkbox" value="houston" />Houston <p><input type="submit"></p> [/memb_registration_form]
Shortcode Parameters
allow_existing: If set to “1”, the form will allow users that already exist in ActiveCampaign to register. If the user is in WordPress already, the registration will still fail.
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.
css_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.
recaptcha: Optional. Defaults to no. Set to YES in order to use the recaptcha function. Step-by-Step guide here.
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.