1
0
-1

Using the SalesForce prefill processor, if I select the "MailingAddress" in the processor config, it returns a complex data type which looks something like this:

 

Currently, the Avoka Transact Processor does not support a configuration which splits up the complex data type into individual fields, so how can I prefill my form with this address?

 

    CommentAdd your comment...

    2 answers

    1.  
      2
      1
      0

      The recommended approach to this is to simply prefill with the individual fields from Salesforce and not use the compound types. I.e. instead of adding MailingAddress to your Salesforce Prefill Generator config, add the individual mail fields:

      • MailingStreet
      • MailingCity
      • MailingState
      • MailingPostalCode
      • MailingCountry

      Then you can use the native ability of the Transact Prefill Processor to map fields into the form and there is no need for nasty JavaScript in form load events.

      This page provides some guidance around Salesforce address compound fields:

      I've added some instructions on the How to configure a Transact Prefill Generator in Salesforce page for dealing with compound types.

        CommentAdd your comment...
      1.  
        1
        0
        -1

        The following code can be used in a form load script (or even a page change script):

         

         

          CommentAdd your comment...