Using iframe in modal for forms

  html, iframe, modal-dialog, symfony, twig

We are developing an application in Symfony 3, Twig, Boostrap 4 and Javascript and one of the requirements was to reduce the output of the pages when creating or modifying an element, for this we chose to use forms in modal windows using an iframe within which it is in charge to show the form, also allowing to use the Symfony validation system. The question is regarding the approach if it was the correct one when using iframe.

Thanks in advance.

Source: Symfony Questions