Is it something like this : if form.customer_choices.choices['commercial',
'private'] == 'commercial':

On Tue, Nov 8, 2022 at 5:38 AM David Nugent <dav...@uniquode.io> wrote:

> A quick reading of your code suggests that `form.customer_choices.choices`
> should be returned as an array with the state of each choice, so == here is
> probably not going to work.
>
> On Mon, Nov 7, 2022 at 8:58 PM Obodoma Uzondu Vincent <
> uobodoma...@gmail.com> wrote:
>
>> I have a multi-step form that is 3 steps but it has 4 forms. In the first
>> form, the user has to choose from two choices. The user’s first form
>> choices will determine the next form that will be displayed.
>> The code is not working as it should. The first form choices are radio
>> buttons which are commercial and private. If the user chooses commercial it
>> brings the next form and if the user chose private it brings a different
>> form. My problem is that if the user chose private or commercial it brings
>> the same form.
>> Views.py
>> template
>> forms.py
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/f3fc2a20-0bea-4ba2-a9a2-c916ffec8ff7n%40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/f3fc2a20-0bea-4ba2-a9a2-c916ffec8ff7n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAE5VhgU7BueC%2BYx5X2WzU6HKiVi5g7UZjmKyO%2BOwbBgQsHgZrg%40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAE5VhgU7BueC%2BYx5X2WzU6HKiVi5g7UZjmKyO%2BOwbBgQsHgZrg%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CACsKspmrFKwM7jCVYJjom7vsMK98eN5Skpiqz%3DBerMchEPGfCQ%40mail.gmail.com.

Reply via email to