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
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Django forms: Auto fill fields from existing data

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


    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,032 ✭✭✭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