Re: How to Process Multi Step Forms in Django?

2015-05-05 Thread Ken Nguyen
Hi Bernardo, I appreciate the feedback. I've heard of many ways to pass data between methods in views such as session, write to a file, or use formwizard. It is still a problem accessing the session from the "cleaned_data"? This is my first time hearing about query string, care to explain or

Re: How to Process Multi Step Forms in Django?

2015-05-05 Thread Ken Nguyen
I've finally figured it out after weeks of troubleshooting and here's how I do it. In the original post, my views takes in the request from form1 and renders it to form2. I would get the dreadful "Management Form Data is Missing" error no matter what I did and it led to asking a bunch of quest

Re: How to Process Multi Step Forms in Django?

2015-05-04 Thread Ken Nguyen
Nevermind what I said on my last post, something is internally wrong with my second form. It can't even render when I hard coded the first_name, last_name and the checkboxes. Still getting Management Form Data is Missing. {% load staticfiles %} User Information User

Re: How to Process Multi Step Forms in Django?

2015-05-04 Thread Ken Nguyen
Hi Bernardo, Using your hidden method works. I can see the "hidden" value from Form2 but how do I use those hidden information in form2 so it can redisplay correctly? First time around, it will use the variable from form1. The second time around it should use the hidden information without t

Re: How to Process Multi Step Forms in Django?

2015-05-04 Thread Ken Nguyen
r them with hidden inputs. > You can try to make form2 inherit from form1 and just add the checkbox. > > On Friday, May 1, 2015 at 9:58:28 PM UTC-3, Ken Nguyen wrote: >> >> I've made some attempted to use formwizard but there wasn't much >> documentation about

How to Process Multi Step Forms in Django?

2015-05-01 Thread Ken Nguyen
I've made some attempted to use formwizard but there wasn't much documentation about it so I decided to stay with the basic. I've successfully obtained and display the data from the first form to the second form and added some checkbox next to the data to allow user to choose whether to overw

Django BooleanField Checkbox Returns Empty

2015-04-29 Thread Ken Nguyen
I read every corner of the documentation but couldn't figure out why the BooleanField Form doesn't return 'True' when the checkbox is checked. Is this a valid test? Shouldn't formset.cleaned_data = [{True}, {False}]? >>> from django import forms >>> from django.forms.formsets import formset_fa

Reading Dynamic Checkbox in Django

2015-04-28 Thread Ken Nguyen
Hi Folks, First time posting on here so if I violate any laws, please forgive me. I also posted the same question on StackOverflow but didn't get any answers so I'm hoping this place will get more attention. I'm having a