International telephone element should submit a standardised phone number

Created on 9 September 2024, 10 months ago

Problem/Motivation

Belgian phone numbers start with 0, but when prefixing with the international dial code +32 the 0 should be left out. Currently, having both the international dial code and a 0 passes validation and submits it like this to the backend.

Proposed resolution

The intl-tel-input library has the possibility to extract a standardised phone number from the input data. Let's submit that value instead of the raw value entered by the user, to make sure the submitted numbers are in a standardised format.

🐛 Bug report
Status

Needs review

Version

6.3

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024