MemberPress account and registration forms have a default set of fields. Under MemberPress settings, you can enable and disable some default MemberPress fields and add your custom fields.
This document will explain how you can manage MemberPress fields and create custom fields for registration and account forms.
Managing MemberPress Fields
MemberPress field options are available at Dashboard > MemberPress > Settings > Fileds tab. Here, you will find several options for managing default fields.
The first option you can check is whether the field settings should be applied to purchases made by existing users. Disabling the Show The Fields Below For Logged-in Purchases option will only apply the field settings to new users.
Next, you can show the name and address fields on registration and whether these should be required.
Checking the Show checkbox for the Name Fields will add the First Name and Last Name fields to your forms. Checking the same option for the Address Fields will add the Address, City, Country, State/Province, and Zip/Postal Code fields.
Setting fields as Required will prevent users from submitting registration forms without filling them out.
Creación de campos personalizados
On the Fileds page, under the Custom User Information Fields section, you can add your custom fields:
- Click on the + icon to add a new custom field. This will open the field form.
- Start by naming your field. This Nombre will be used as the label for this field in your forms.
- Next, you could choose the Tipo of the field. Depending on the type you choose, additional type-specific options will appear.
- En Valor(es) por defecto field should contain the value that should be loaded as default.
- Checking the Show at Signup option will show your custom field on registration forms. Also, checking the Show in Account option will show the field on the account form.
- Checking the Required option will prevent user registration without filling in this custom field.
- Haga clic en el botón Opciones de actualización button to save the field.
MemberPress Fields feature allows you to create unlimited custom fields for your members to fill out.
Further, under the settings of any Memberships, you can choose to show or hide specific fields. By default, all custom fields set to Show on Signup will be displayed on the registration forms of all Memberships.
This will allow you to show only the fields you need on the registration forms for every membership.
Custom fields set to Show in Account will be visible in users' accounts after they register for a membership.
Creating a Default Blank Option for Drop-Down Custom Field
To add an “empty” option, add the following as your first option:
That way, when your users fail to select an option, MemberPress won't let them submit the form, and it will show this error:
Creación de una opción de casilla de verificación en la que se puede hacer clic
Para crear un campo personalizado de casilla de verificación en el que se pueda hacer clic, basta con añadir algo de html básico al nombre del campo al crearlo. He aquí un ejemplo:
<a href='https://www.yoursite.com/special-policies' target='_blank'>Acepte nuestras políticas especiales</a>
Que aparecerá así en la página de registro:
Activación de varias opciones de "marcado" para campos personalizados de selección múltiple y casillas de verificación
MemberPress le permite introducir una opción por defecto que se seleccionará o marcará para los tipos de Campo Personalizado Multi-Select y Casillas de verificación utilizando la opción
Valor(es) por defecto para el campo e introduciendo el valor de la opción como se muestra aquí:
Para marcar más de una opción, basta con separar los campos
Valor de la opcións introducidos en el Valor(es) por defecto como se muestra aquí (separados por comas, sin espacios entre las entradas):
Este es el aspecto que tendría en su página de registro: