- How do I add a phone number as a required registration field?
Hey there! You can achieve this by doing the following:
- Open your project settings and select your collection.
- Click on Create Field.
- Select Input field, marking it as required as you go.
- Click on “Continue to continue in Advanced Field Creation mode”
- Open the “Validation” tab, and click on “Add Filter”
- Change “contains” to “matches Regexp”
- Enter the following regular expression:
/^\+?[1-9]\d{1,14}$/
- Save your field and collection.
Hope this helps!