formwizard

Django FormWizard with dynamic forms

I want to implement a simple 2 part FormWizard. Form 1 will by dynamically generated something like this: class BuyAppleForm(forms.Form): creditcard = forms.ChoiceField(widget = forms.RadioSelect) type = forms.ChoiceField(widget = forms.RadioSelect) def __init__(self,*args, **kwargs): user = kwargs['user'] del k...

Skip steps on a django FormWizard

I have an application where there is a FormWizard with 5 steps, one of them should only appear when some conditions are satisfied. The form is for a payment wizard on a on-line cart, one of the steps should only show when there are promotions available for piking one, but when there are no promotions i want to skip that step instead of ...

How to create Django FormWizard for one Model?

I have Django Model with many fields which user must fill. If I'll create one ModelForm for this Model it will be big enough for one form. I want to split it using FormWizard. I think it's possible first to create forms dynamically and then create FormWizard using them. Is this good approach or is there any better way? ...

Django formwizard - IS there a way to get more than one Form on a single page

I have a number of forms, say 5, I want to display them as page 1[ 1,2,3], page 2 [4], page3[5], as in one page having multiple forms. Is thsi possible with formwizard? ...

Django FormWizard and view

Hello guys, Basically, I just want to be able to get the parameter community_name, can this be done with (r'^(?P<community_name>\w+)/matches/submit/$', MatchWizard([MatchStep1Form, MatchStep2Form, MatchStep3Form])), or do I need a view? If I have a view, I can have the URLConf like (r'^(?P<community_name>\w+)/matches/submit/$', "mat...

jquery form wizard validation

Hi all, I'm trying to implement a validation script (bassistance) with a jquery form wizard (http://www.jankoatwarpspeed.com/post/2009/09/28/webform-wizard-jquery.aspx) but I'm having some problems. On the page for the jquery wizard, a guy named "Tommy" came up with a piece of code to implement bassistance with the code. But for some r...

Django: FormWizard runs but one instance when it's URL is requested multiple times

Hi all, I found out that the FormWizard only __init__'s once, when the url is request by multiple users at the same time (me in 2 browsers :). This results in the fact that my temporarily stored data on the wizard's instance is wrongfully shared between users. I'm doing some DB hits in the second step, and based on that outcome I do a...

how can I implement foreign Key in Form Wizard

I have 2 models connected with foreign key but when i am Implementing form wizard from orm model it is not relating both of them with each other please provide any solution ...

JQuery form wizard and historyEnabled doesn't work

Hi I'm trying Jquery form wizard http://plugins.jquery.com/project/formwizard And it seems to work until I use historyEnabled: true. Back button stops working (I see in that case history.back() is called, but actually it shows the same step all the time). So how can I fix this? ...

Modifying a Form Wizard Plug in - Add visited state for "Steps Left"

Hi trying to add a modification to the form wizard from http://www.jankoatwarpspeed.com/post/2009/09/28/webform-wizard-jquery.aspx I was already able to make it validate the current visible fieldset on click of next with tips found here but can't find anything on this. I need to add a "visited" class and apply it to steps that have been ...

How/where to stop Django Formwizards 'done' method being called on payment failure

Hi there, I've looked through the django documentation, done lots of googling and have tried quite a few different solutions but to no avail. I've created a 3 part form using Django's FormWizard. Once the last form (a payment form) is validated, I send a payment request to a payment gateway. I'm doing the payment processing in the 'pro...

FormWizard: Forms determined dynamically

Hi, In my website, i wanna give users the possibility to upload videos, audio files, and pdfs. For this, i have thought about using formwizard. The first form-page is to ask for the name + the type of file to upload. The second form-page would be determined dynamically based on the answer of the first form. Is this possible with django's...

Referencing a non-existent user Control?

I have created an application that searches a directory and loads all of the usercontrols into the form and then uses a "GetResult()" method to grab the answers from the form. I did not do this OOP style because I am still learning how to fully utilize OOP and I am now going back to design it with OOP so I can move onto the next part whi...