[memb_update_form]

Summary

This shortcode provides a safe and secure way to enable your members to update their ActiveCampaign contact fields.

Shortcode Examples

[memb_update_form success_url="/success-page/" tag_id="12"]
<p>First Name: <input name="first_name" required="required" type="text" value="[memb_contact fields=firstname]"></p>
<p>Last Name: <input name="last_name" required="required" type="text" value="[memb_contact fields=lastname]"></p>
<p>Custom Field: <input name="customfieldname" type="text" value="[memb_contact fields=customfieldname]"></p>
<p><input type="submit" value="Update Profile"></p>
[/memb_update_form]

This will create a form for updating the logged in user’s First name, last name, custom field, and also includes the parameters for success page and tag ID (optional). You can also change the submit button’s label by changing the value=”Update Profile”.

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

[memb_update_form success_url="/next-page/"]
<p>First Name: <input type="text" required="required" name="FirstName"></p>
<p>Last Name: <input type="text" required="required" name="LastName"></p>
<p>Nickname: <input type="text" required="required" name="Nickname"></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>
<p><input type="checkbox" name="FieldName" value="ValueToBeSavedinActiveCampaign">First checkbox example<br></p>
<p><input type="checkbox" name="FieldName" value="ValueToBeSavedinActiveCampaign">Second checkbox example<br></p>
<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_update_form]

Shortcode Parameters

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

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

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