Form Validation bug

2025/05/27 8:39 PM

Conditions:

A form with a field marked as required. In my example I have a Number field.

A separate File Upload Field which is also set to required

Bug Replication:

1 - Fill the Number field intentionally incorrect, for example enter 5.5

2 - Add a file in the file upload field.

3 - Click Submit
The Number field gets rejected and marked red for you to change.

4 - Change the number to 5

5 - Try re-submitting the form

6 - I get a JS error "An invalid form control is not focusable." and form doesn't submit even though the error had been corrected.


Environment

  • Xperience by Kentico version: 30.2.2

  • .NET version: 9

  • Execution environment: Azure

Tags:
Form Builder Xperience Administration Xperience Portal JavaScript

Answers

2025/05/27 10:54 PM

Is this a question about the Form Builder form website forms or UI Form Components for the administration UI?

(hint: you can tag your question when authoring it to help people find it in search and understand the context)

2025/05/28 2:02 PM

Thank you, I've tagged the question. It's a Form Builder issue.

2025/06/23 3:23 AM

I tested this on a dancing goat site 30.4.1 and it is working as expected. I followed your steps but I was still able to succesfully submit the form. Do you have any custom codes in place that could be causing this? Can you try and see if you can reproduce this issue on a dancing goat site?

To answer this question, you have to login first.