User475983607 posted
I was just wondering how I could implement sections that are optional to a user as they are completing a required form? I'm working on a project and depending on user needs they may need to have the option to select different sections that apply to their
request. I'm working with Razor Pages, there could be something that I am missing it would be great if someone could help point me in the right direction!
Your question is a general design that cannot be answered by a forum. Only you know what fields are option and which are not. However, the framework comes with data annotations applied to model properties which can make a field required.
That might be an option?
https://docs.microsoft.com/en-us/aspnet/core/tutorials/first-mvc-app/validation?view=aspnetcore-3.1