Select-field in form not validated as required

I’m having a Select-input field in a form to offer options to select from. Initially, the field value is null or undefined and I’ve configured this field to be “required”. However, the submit event is going through even if this field has not been filled with a value. I was expecting to see a message like “please fill in this field” like shown for other required input fields.

Can you reproduce this behavior?

Regards,

Hello @Klaas_Klever

Thanks for sharing this and I can confirm that we can reproduce the problem, I just created an internal ticket to fix this BKNDLSS-27111

Regards, Vlad

Hi @vladimir-upirov ,
Any news or plans for this.
I would like to get rid of my own error handling here.
Thanks,

Hello, @Klaas_Klever

For now no any news. I’ve increase priority for this ticket and we will notify when that would be solved.

Sorry for inconveniences.

Regards, Dima.

Is this still a problem? I have set several fields in a form to be required, but submit goes through like butter anyway.

1 Like

@vladimir-upirov Are required fields not handled? Or, to ask another way - do I need to manually set up logic and response to the user whenever a field that should be required is not filled with data in UI Builder?

do I need to manually set up logic and response to the user whenever a field that should be required is not filled with data in UI Builder?

For now, we have only this solution. So yes, you should manually check the inputs and disable submit button whenever inputs are not filled, or filled incorrectly.

Regards, Dima.

Understood, thanks for clarifying, I’ll get to work then :slight_smile:

I understand that this is no small undertaking to improve upon in a robust, localized way, but it would for sure make UI Builder a whole lot better to have built-in support for this…