<p>The Preparse plugin may help you accomplish what you want. <a href="https://github.com/aelvan/Preparse-Field-Craft" rel="nofollow noreferrer">https://github.com/aelvan/Preparse-Field-Craft</a></p>

CC BY-SA 4.0
2019-10-07T18:43:40.827Z
2019-10-07T18:43:40.827Z
Andrea DeMers
<p>Whenever a user is registered in the control panel, we'd like to have a special field (something like a special member id) that is populated either by manual entry or, if the field is left empty, run custom logic to generate a new value for that field.</p>

<p>Is this possible using Craft's events or by extending the existing user registration form available in the CP, or would it be easier to create a separate plug-in to handle the user creation process?</p>

<craft3><users>
Is it possible to populate a user field in the CP using custom logic upon registration?
# Is it possible to populate a user field in the CP using custom logic upon registration?

(Asked by: username_0 on 2019-10-07)

Whenever a user is registered in the control panel, we'd like to have a special field (something like a special member id) that is populated either by manual entry or, if the field is left empty, run custom logic to generate a new value for that field.

Is this possible using Craft's events or by extending the existing user registration form available in the CP, or would it be easier to create a separate plug-in to handle the user creation process?

**Tags:** craft3, users

---

## 1 answers

### Answer by username_1 on 2019-10-07. Score: 1

The Preparse plugin may help you accomplish what you want. <https://github.com/aelvan/Preparse-Field-Craft>


---

