Validation message appears on modal opening [Traditional Web]

I have a form inside a web block inside a modal.

I have a mandatory field on the form.

When I open the modal, the validation message for the mandatory field appears.

I think the modal when opening is submitting. The method of the butto which opens the modal is ajaz submit wit server validations.


Thank you.

Hi Andi,

This is because the validation of the button is "Server" as a result it will call the preparation of the screen and i guess you bind the table with the aggregate which is call into the preparation that's why you are getting those feedback messages.

I suggest to change validation to "Client and server" for that button.

Hope this will solve your issue.

Regards,

Vipasha

I've tried Vipasha, but the same happened.

Solution

Hi Andi, 

Make the validation of button as "none" which use to open the your modal, as if we make either "server" or "client & server" validation then by default it will marked as "required field" because from backend they are validating the form.

Please refer the attached OML for more details

Hope this will helps you

Regards,

Vipasha

Solution

Hi Vipasha, I already solved the problem. It was actually like you've said to make the vallidation of the button which opens the modal to none.


Thank you the same.


Regards,


Andi

Thats great, glad to help you.

Happy coding!!!!