You may want to collect additional information about you user, whether it’s a customer’s email, first name, last name, address or other custom fields .You can do this at any stage… pre-signup, at signup,or at any point in the user’s lifecycle. Let’s go through each one in turn.We offer pre-made fields (see note below), or you can create your own.
Pre-made fields
We have a few fields pre-made for you including Alias, First Name, last Name, Job Title, T-Shirt Size, and username.As an example,Username field is a string that is unique for each project, and has the following validations:
T-shirt size - this field is a dropdown with the standard options available (XS, S, M, L, XL, XXL).
You can specify additional custom fields and how you want to validate these fields by creating a new field in. It is located in the log in and user profile section.
You will want to programmatically create a user in Dynamic and attach this information to them. You can do both steps at the same time, or you can do one after the other.Make an API call to the users endpoint with some form of identifier for the user, and with or without the information you want to capture.
Now, when the user actually signs up using that same email, we can give the user object a verified credential, and they will be able to see the information you captured on their profile.
If fields are mandatory, they cannot be skipped during onboarding and the user will be prompted to enter the information. However, if you have only optional fields, you can skip them during onboarding and prompt for them at a time of your choosing.Then, if you want to prompt the user to enter the information at a later time, you can do so by calling the updateuserwithmodal method from the useuserupdaterequest hook. This will trigger the UI for info capture.
Q. What happens with your current users if you change the settings?A. No big deal. If you make certain fields required, then the next time a user connects to your application, we’ll ask them to enter the field that you just made mandatory. That way, your users will stay up to date with the fields that you need.