<p>For custom fields that you add to <code>users</code> under <code>settings&gt;users&gt;fields</code>, you can control whether the field is required by clicking on the small gear icon and selecting <code>make required</code>. With built-in fields such as <code>firstName</code> and <code>lastName</code>, <code>make required</code> cannot be controlled. Within the CP, at least, you would need to look for a plug-in solution.</p>

<p>On the front-end, I would suggest a writting javascript solution that simply validates that the fields are not empty before submitting the form (or before enabling the submit button). Have a look at jquery's <a href="http://api.jquery.com/on/" rel="nofollow"><code>.on('click')</code> or <code>.on('change')</code></a> functionality for more info.</p>

CC BY-SA 3.0
2014-10-20T15:56:48.050Z
2014-10-21T02:13:48.050Z
2014-10-21T02:13:48.050Z
Douglas McDonald
<p>how to make required plane text fields or required firsrtName and lastName fields in users profile? I want to during the registration and profile changes were required. Maybe there is any plugin for this?</p>

<field><user-profile><required>
Required fields in the user profile
# Required fields in the user profile

(Asked by: username_0 on 2014-10-20)

how to make required plane text fields or required firsrtName and lastName fields in users profile? I want to during the registration and profile changes were required. Maybe there is any plugin for this?

**Tags:** field, user-profile, required


---

## 1 answers

### Answer by username_1 on 2014-10-20. Score: 3

For custom fields that you add to `users` under `settings>users>fields`, you can control whether the field is required by clicking on the small gear icon and selecting `make required`. With built-in fields such as `firstName` and `lastName`, `make required` cannot be controlled. Within the CP, at least, you would need to look for a plug-in solution.

On the front-end, I would suggest a writting javascript solution that simply validates that the fields are not empty before submitting the form (or before enabling the submit button). Have a look at jquery's [`.on('click')` or `.on('change')`](http://api.jquery.com/on/) functionality for more info.


---

