#template

<select id="cars" name="carlist" form="carform">
  <option value="volvo">Volvo</option>
  <option value="saab">Saab</option>
  <option value="opel">Opel</option>
  <option value="audi">Audi</option>
</select>

 

<form class=”f1” style=”display:none;” method=>

</form>

 

 

<form class=”f2” style=”display:none;” method=>

</form>

<form class=”f3” style=”display:none;” method=>

</form>

<script>

Document.querySelector(“select”).addEventListener(“change”,(ele)={

If ele.target.textContent ==”Volvo”:

    ..

Else if

...

Else

...

})

</script>

 

Otherwise just send a form to pick the user preference out of Basic, Standard, Advanced, get the request and based on the request’s attributes send a form back through redirect function.

Sent from Mail for Windows 10

 

From: Sai
Sent: 21 May 2020 10:00
To: Django users
Subject: How to invoke Sub Form which have MULTIPLE OPTIONS to choose inside Django Form.

 

Hi Everyone, 

I am pretty much familiar with Django Forms with models. I want to build a Submit Form which consists of attributes like UserName, Email, address field and 3 options to select the packages, for example, Basic, Standard, and Advanced.  I have gone through Django Docs but there is no such thing.

 

Please let me know how to achieve this and open to ideas. 

 

Thank You in Advance.

--
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/cb12fc88-0d5a-4ec4-a6d6-1272a0a69d9a%40googlegroups.com.

 

--
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/5ec6100b.1c69fb81.97f6e.083a%40mx.google.com.

Reply via email to