Client-side validation of phone number element is not working

Created on 29 February 2024, 4 months ago
Updated 1 April 2024, 3 months ago

Problem/Motivation

Built-in client-side validation depends on the "required" attribute being present on the form element. Currently, this attribute is added to the label but not to the actual input element.

Steps to reproduce

Add phone_number field to the form. Make the field required. Submit the form.

What happens: Form will get submitted and server returns validation error that field is required.
What is supposed to happen: Client-side validation prevents form submission and adds the message next to the phone number field.

Proposed resolution

Add "required" attribute to the input element.

Remaining tasks

Create MR.

User interface changes

None.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇷🇸Serbia vaish

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024