Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6635511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T23:03:50+00:00 2026-05-25T23:03:50+00:00

I have a template: … <form action=/reportform/ method=post> <p><label>Aircraft system:</label> <br>{{ Querry.system }} …

  • 0

I have a template:

    ...
    <form action="/reportform/" method="post">
    <p><label>Aircraft system:</label>
    <br>{{ Querry.system }}
    ...

it looks like this

How can I set a Size option for this box? for example, 10.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T23:03:50+00:00Added an answer on May 25, 2026 at 11:03 pm

    Use the attrs attribute to define the size.

    class MyForm(forms.Form):
        system = forms.ChoiceField(choices=SYSTEM_CHOICES,
            widget=forms.SelectMultiple(attrs={'size':'40'}))
    

    Sometimes, it is useful to override the widget in the forms init method.

    class MyForm(forms.Form):
        <snip>
        def __init__(self, *args, **kwargs):
            super(MyForm, self).__init__(*args, **kwargs)
            self.fields['system'].widget = forms.SelectMultiple(attrs={'size':'40'}))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have template that looks like this: 100 template<size_t A0, size_t A1, size_t A2,
I have template like this: {% for a in As%} <div>blah--blah--</div> <input type=hidden name=doSomeThingTarget
I have template for example index.html.php where I use php assetic loader like this
I have template codes with nested curly braces like this: {code{attributes}} I want both
I have a template class which looks like the following: template <template <class TypeT>
I have some template code that looks like: <input type='submit' value='{{ need.satisfied|yesno:Resend this document
I have this template: # app/views/posts/index.rabl collection @posts => :posts attributes :id, :title, :subject
I want to emit some js from jQuery templates e.g I have template like
I dynamically create gridview, and in this grid I have template field also field.HeaderTemplate
I have some template string this is my {0} template {1} string which I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.