We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Modal inside form causing issues

I am trying to use a modal that is triggered via button inside of an EditForm that contains other fields. The issue I'm having is when opening the modal, closing it also triggers the EditForm's submit methods which either submit the form prematurely or trigger all the validation, both of which I don't want to happen. Additionally my goal is to put another form inside the modal so any guidance you can provide on the best way to do that would be helpful. 


1 Reply

VY Vinothkumar Yuvaraj Syncfusion Team January 23, 2023 04:18 PM UTC

Hi Anthony,


You can set the type "button" for the open dialog button, this will prevent the form submission when the button is clicked. We also created a sample based on your requirements, please find the attached sample for your reference.


Please let us know if you have any concerns.


Regards,

Vinothkumar


Attachment: BlazorApp1_677d7877_8e1137c2.zip

Loader.
Live Chat Icon For mobile
Up arrow icon