Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Django forms: Auto fill fields from existing data

Options
  • 16-09-2013 2:39pm
    #1
    Registered Users Posts: 2,589 ✭✭✭


    Hi guys, hope this is the right place for this.

    Using Django forms and Mako templates, is it possible to auto fill fields from existing items?

    For example, I have a Booking form which looks for customer details (first name, surname, email, phone) and also have a list of existing customers saved with these details. So I want to able to select an existing customer from a list and when i press Enter, the customer fields automatically get filled out with the appropriate information?


Comments

  • Registered Users Posts: 2,030 ✭✭✭colm_c


    Django itself is toolkit for web apps.

    What you are talking about can be done fairly easily, but Django would be only one part (querying the database, rendering the form fields), you'll also need javascript and an understanding of Ajax to create what you've described.

    How much web development / Django experience do you have?


Advertisement