3 Replies Latest reply on Jul 22, 2011 10:58 AM by philmodjunk

    Autofill Customer Information.

    MartinRochefort

      Title

      Autofill Customer Information.

      Post

      Hello.  I would like to automate the data entry for a work order record into my layout titled "Dockets and Progress".  Specifically so that all customer information does not have to be entered each time a new record is created.  I would like to have have the Address, City, Province, Postal Code, RR#, Tel, Fax, email, autofill upon selection of the customer name.  This information has been imported from Simply accounting and all exists in separate fields in another layout titled "Customers".  I have enabled the customer name to be selected / auto completed from a drop down menu. Is it possible to have the rest of the fields autofill from the record in my "Customers" table at the same time a customer name is selected.  Basically what I would like is an altered version of my form view from my "Customer" layout to show up in my "Dockets and Progress" layout.

      Any help is greatly appreciated.

      Martin.

      FMP 11

      Snow Leopard 10.6.8

        • 1. Re: Autofill Customer Information.
          philmodjunk

          By linking your two tables in a relationship, you can simply add the  fields from the Customer table to your Dockets and Progress layout. When  you select a customer, these fields from customer will then display the information from that customer record.

          BUT, what happens if you get two customers with identical first and last names? What if "Mary Smith" informs you that she is now "Mary Jones" do to a change in marital status? Or you set up 5 or 6 records in Dockets and Progress for John Smith before learn his name is really John Schmidt?

          Define an auto-entered serial number field in Customers and use it instead of the customer name field to link your Dockets and Progress records to a customer records. You can set up a value list for this ID number that lists ID numbers from Customers in field 1 and the customer's name in field 2. (If you have separate first and last name fields, use a calculation field that combines the two for this field 2 option in the value list.)

          I know that auto-complete option is nice and using a serial number based ID eliminates that option, but it's better to avoid the above issues by using an ID than to use a name based relationship just so you can use an auto-complete enabled value list of names.

          Fortunately, once you get those basics working for you, you can have both. You can set up a text search field formatted with your auto-complete equipped list of customer names with a script that finds all customer records with that text and either:

          1. Displays an error if no customers match
          2. Enters the customerID if just one customer record matches
          3. Displays a list of matching records when more than one record matches with additional data to help the user tell which person they want. Clicking a name in this list selects that customer's ID and enters it into your Dockets and Progress Record.
          • 2. Re: Autofill Customer Information.
            MartinRochefort

            Thanks.  I was almost there.  Thanks for the tip to reference serial numbers instead of Names.  Should save possible issues later on.

            • 3. Re: Autofill Customer Information.
              philmodjunk

              Here's a demo file that shows several ways to set up an enhanced search method so that you can related records by ID number, but use an auto-complete enabled drop down list of names or a "partial match" text pattern to make it easier to select the correct record:

              http://www.4shared.com/file/plr_jbkk/EnhancedValueSelection.html