Base solution for your next web application
Open Closed

Form Validation for a non-Modal ? #8654


User avatar
0
HCCNOV created

Building a site that contains a complex "Add" and "Edit" screen not suitable for a Modal. Is there an example somewhere in the framework of performing page(form) validation on a non-modal form ?


4 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi You can take a look at the documentation below. https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Converting-Create-Edit-Modal-To-Page-Mvc-Core https://docs.aspnetzero.com/en/aspnet-core-angular/latest/Converting-Create-Edit-Modal-To-Page-Angular

  • User Avatar
    0
    HCCNOV created

    Thank you for pointing me to the sample. I did perform a search through the forum for this issue and did not find anything.

    This is essentially what I did to my own form but could not get the validation to trigger. (red text, etc)

    I spent the time and implemented your solution above (Mvc-Core) and was able to make this work for me here. I will go back and review my code more carefully.

  • User Avatar
    0
    mhdevelop created

    I am facing same problem, did you come up with solution?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @mhdevelop,

    You can take a look at https://support.aspnetzero.com/QA/Questions/8654#answer-ca5e6d61-0c1f-0dea-557e-39f3d9985645

    Related documents explain how to convert a modal to a page. So, current validation logic of modal pages also works on pages.