Name Input Field in WP Fluent Forms WordPress Plugin
In Wp Fluent Forms, a Name field is used to collect a person’s full name (first name, middle name, last name) without having to create or manage multiple textbox fields. In most cases, it allows collecting first name and last name by default. But you can also collect your users’ middle name with just a single click.
You can add this field type in 4 different ways. To learn more about creating a basic form, click here.
To enable customization, click on the edit icon you get when hovering over the field. Or click on the Input Customization tab in right sidebar when the field is selected. See the below screenshot for better understanding –
Clicking on the edit icon will take you to the Input Customization section. The Input Customization section allows you to customize your field.
In Input Customization section, you will find some different options like–
- Default Fields.
- Advanced Options
In general fields section, there are some important options which are given below.
- Admin Field Label: If you want to show a different label for your admin users when they view the form submissions you can configure that using this option. It doesn’t have any actual effect on the form rather only for administrative purposes.
- Field Label: You can also change the field label as your wish by this option.
- Middle Name: You can add a middle name field in your form through this option.
- Default value: You can pre-populate the field’s value, means setting a default value, using one of the available options here. Let’s see what are the things we can do here.
– Populate by GET Param: sets the default value from the query string found in the URL. Make sure you keep the ‘get.’ part otherwise it won’t work as you expected.
– IP Address: sets the value from the user’s IP address.
– Date (mm/dd/yyyy): sets the value from the current date in the denoted format, e.g. 04/25/1991.
– Date (dd/mm/yyyy): sets the value from the current date in the denoted format, e.g. 25/04/1991.
– Embedded Post/Page ID: sets the value from the current post or page ID.
– Embedded Post/Page Title: sets the value from the current post or page title.
– Embedded URL: sets the value from the current URL.
– User ID: sets the value from the logged in user’s ID.
– User Display Name: sets the value from the logged in user’s display name.
– User First Name: sets the value from the logged in user’s first name.
– User Last Name: sets the value from the logged in user’s last name.
– User Email: sets the value from the logged in user’s email.
– User Username: sets the value from the logged in user’s username.
– User Browser Client: sets the value from the logged in user’s browser name.
– User Operating System: sets the value from the logged in user’s OS name.
All of these are dynamically populated for the users when they attempt to fill up the form that you created. This sure does add a unique experience for your users.
- Placeholder: When the input is empty it is customary to show a certain message to the users so they can grasp what the input field expects from them. It is the equivalent of HTML input placeholder attribute.
- Required: Determine whether the field could be empty or not when the user submits your form by choosing the appropriate option from here.
The advanced options available for the name input fields are as followed:
- Container Class: Use this option to add your custom CSS classes to the field’s wrapper.
- Name attribute: The input field’s name attribute is the HTML equivalent of the same name. You don’t need to modify this.
- Conditional Logic: You can create certain rules to dynamically hide/show the input field based on the values from some other fields. To get a better understanding of Conditional Logic, read this.
These are the total configuration processes for name input field.