2 Replies Latest reply on Dec 13, 2012 9:24 AM by ClaireWhitehead

    Scripting: auto-enter address info as same as other?

    ClaireWhitehead

      Title

      Scripting: auto-enter address info as same as other?

      Post

           I'm just using the starter solution (FM Pro v12) for contacts and adapting it. I want to create a button that allows me to auto-enter the same address for home as work... There are two address tabs and many of my clients have the same work and home address but I want to easily copy this across... Can you help? I'm just starting to work with FM and this is my first hurdle!

           Many thanks,

           Claire

        • 1. Re: Scripting: auto-enter address info as same as other?
          philmodjunk

               Copying from Home to Work:

               Set Field [Contacts::Home Address 1 ; Contacts::Work Address 1]
               Set Field [Contacts::Home Address 2 ; Contacts::Work Address 2]
               Set Field [Contacts::Home City ; Contacts::Work City]

               and continue that for each pair of address fields.

               When Setting up Set Field, there are two Specify buttons that must be clicked. To get Set Field [Table::Field ; Expression], add set field to your script and click the first button (specify target field). Select Table::Field from the list of fields. Do not click the specify button next to the repetition box. Click OK to close this dialog box. Now click the lower specify button (calculated result) and create the expression to the right of the semicolon (;). Do not try to type in the semicolon.

          • 2. Re: Scripting: auto-enter address info as same as other?
            ClaireWhitehead

                 Brilliant! Many thanks!