Skip to content

Commit 7558c12

Browse files
committed
clarify custom field usage
1 parent 3c1aae2 commit 7558c12

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/member/registration.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ The primary role that will be assigned to registered member. If omited, the defa
4141

4242
### `error_handling="inline"`
4343
error_handling="inline"
44-
This parameter allows you to use inline errors in your registration form
4544

45+
This parameter allows you to use inline errors in your registration form. The errors can be displayed using `{error:field_name}` name where `field_name` would need to be replaced with the name of the field that has error, as used to compose the form.
4646

4747
## Form Inputs
4848
NOTE: Be sure to include the required Javascript and CSS to use the native [Password Validation](member/password-validation.md).
@@ -65,8 +65,8 @@ Terms of Service acceptance. This is a **required** field:
6565

6666
Member password. This is a **required** field.
6767

68-
<label>Your New Password</label><br />
69-
<input type="password" name="password" value="" maxlength="50" size="40" />
68+
<label>Your New Password</label><br />
69+
<input type="password" name="password" value="" maxlength="50" size="40" />
7070

7171

7272
### Password Confirmation
@@ -96,7 +96,7 @@ Custom member fields that have "Show in registration?" setting turned on can be
9696
Please note you need to address those by ID and not name, e.g. `m_field_id_8`
9797

9898
<label for="work_title">Work title</label>
99-
<input type="text" id="work_title" name="m_field_id_1" size="40" />
99+
<input type="text" id="work_title" name="m_field_id_1" size="40" value="{if m_field_id_1}{m_field_id_1}{/if}" />
100100

101101
## Variables
102102

@@ -164,8 +164,8 @@ This will show errors with the submitted password as well as password confirm.
164164
</p>
165165

166166
<p>
167-
<label for="something">Something*:</label><br />
168-
<input type="text" name="something" id="something" value="{if something}{something}{/if}"/><br />
167+
<label for="something">Something*: {if error:m_field_id_1}{error:m_field_id_1}{/if}</label><br />
168+
<input type="text" name="m_field_id_1" id="something" value="{if m_field_id_1}{m_field_id_1}{/if}"/><br />
169169
</p>
170170

171171
<p>
@@ -199,4 +199,4 @@ This will show errors with the submitted password as well as password confirm.
199199
</fieldset>
200200

201201
<input type="submit" value="Register" class="btn btn-primary" />
202-
{/exp:member:registration_form}
202+
{/exp:member:registration_form}

0 commit comments

Comments
 (0)