Phone number fields show in registration form even if disabled in settings

Created on 8 February 2024, 10 months ago
Updated 3 July 2024, 5 months ago

Problem/Motivation

In settings, under "Show mobile fields during user registration", it gives the option to set the fields to 'disabled', 'optional', or 'required. However, if we set it to 'disabled' the fields still show up in the Registration form.

Steps to reproduce

- Go to `/admin/config/system/twilio`
- Under "Show mobile fields during user registration" select 'Disabled' and save
- Go to `/admin/people/create`
- Notice the Country Code and Phone Number fields still displayed

Proposed resolution

In `twilio_form_user_register_form_alter()` don't do anything if the settings sets it to 'disabled'.

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇮🇳India shabana.navas

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024