You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/member/registration.md
+36Lines changed: 36 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,34 @@ This parameter allows you to specify the primary role to assign the new member,
38
38
39
39
This parameter allows you to use inline errors in your registration form. The errors can be displayed using the `{error:field_name}` tag where `field_name` would need to be replaced with the name of the field that has an error, as used to compose the form.
40
40
41
+
### `include_assets=`
42
+
43
+
include_assets="yes"
44
+
45
+
Adds the Javascript and CSS that is required by custom member fields to your form. By default, these are **not** included
46
+
47
+
### `datepicker=`
48
+
49
+
datepicker="no"
50
+
51
+
Adds the datepicker to your date fields. Defaults to "yes".
52
+
53
+
NOTE: **Note:** If you are manually constructing a date field, in order to apply the date picker you must include `rel="date-picker"`.
54
+
55
+
### `include_css=`
56
+
57
+
include_css="no"
58
+
59
+
Allows you to manage the inclusion of required CSS independently from the `include_assets` parameter. Defaults to "yes".
60
+
61
+
### `include_jquery=`
62
+
63
+
include_jquery="no"
64
+
65
+
Includes jQuery automatically. Defaults to "yes".
66
+
67
+
NOTE: **Note:** If you are using your own copy of jQuery you will need to load it **before** the form.
68
+
41
69
## Form Inputs
42
70
NOTE: Be sure to include the required JavaScript and CSS to use the native [Password Validation](member/password-validation.md).
43
71
@@ -92,6 +120,11 @@ Please note you need to address those by ID and not name, e.g. `m_field_id_8`
And easier way to display the field's input is to use special tag:
124
+
125
+
<label for="work_title">Work title</label>
126
+
{field:work_title}
127
+
95
128
Custom fields can also be output inside the ``{custom_fields}`` varialble tag pair.
96
129
97
130
{custom_fields}
@@ -168,6 +201,9 @@ This will show errors with the submitted password as well as password confirm.
168
201
169
202
{if error:username}{error:username}{/if}
170
203
204
+
### `{field:field_name}`
205
+
206
+
Displays the custom field input form for the given field (substitute `field_name` with actual field name). Note that the field must be set as "visible on registration" in order to show up.
0 commit comments