Re: How to do validation on a form which is opened by clicking a button

2020-03-01 Thread Sunil BK
. Februar 2020 13:26:20 UTC+1 schrieb Naveen Arora: > > Use this as below in your view - > > context["form"] = YourForm(request.POST or None) > > and just a method if form.is_valid(), there is no need for the else part. > > On Friday, 28 February 2020 02:41:04 UTC

How to do validation on a form which is opened by clicking a button

2020-02-27 Thread Sunil BK
Hello community I am trying to build a simple form which can be opened using a button. It should offer some fields which should be further process after validation. And there is exactly my issue. When I write some data into the fields and click the submit button. the validation error is NOT dis