Closed gingters closed 6 years ago
Have you included the unobtrusive validation javascript script? It's required for the validation to work. See the source of the example page.
It should bind to the view model in the same way a normal form is bound (or are you using a dynamically built form?)
On 9 March 2018 at 21:37, Sebastian P.R. Gingter notifications@github.com wrote:
Hi, i'm trying to use FormFactory in one of my open source projects. I like it how it generates my first form, but I'm a bit lost in how to use the features. I am using ASP.NET Core 2 Razor Pages.
So my main two questions are: How can I enable validation? My required fields i.e. aren't validated and I can post the form without needing to fill in required fields.
When the form gets posted, what do I need to do to get the entered & posted data into my model to further process it?
Thanks in advance
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mcintyre321/FormFactory/issues/55, or mute the thread https://github.com/notifications/unsubscribe-auth/AAQ0-ssTG_7Vq91oEJjRvb6jnSdfrbNiks5tcvYwgaJpZM4Sk530 .
Ah, all sorted out. Indeed, the javascript was missing. I could also sort out the binding. Thanks.
Hi, i'm trying to use FormFactory in one of my open source projects. I like it how it generates my first form, but I'm a bit lost in how to use the features. I am using ASP.NET Core 2 Razor Pages.
So my main two questions are: How can I enable validation? My required fields i.e. aren't validated and I can post the form without needing to fill in required fields.
When the form gets posted, what do I need to do to get the entered & posted data into my model to further process it?
Thanks in advance