Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Django forms: Auto fill fields from existing data

  • 16-09-2013 01:39PM
    #1
    Registered Users, Registered Users 2 Posts: 2,609 ✭✭✭


    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, Registered Users 2 Posts: 2,011 ✭✭✭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