×

    Filters

    Didn't find what you were looking for?

    Extend your Search in Community

    Questions?

    We're always happy to help with questions you might have. Contact Us

Results

Form Property Prefill Mapping Using XPath

   Journey Manager (JM) Previously known as Transact Manager (TM).  |    Platform Developer  |  Updated in v18.11 This feature was updated in v18.11.

Manager allows you to map form properties to values within the form seed for prefill purposes using XPathsXPath (XML Path Language) is a query language for selecting nodes from an XML document. In addition, XPath may be used to compute values (e.g., strings, numbers, or Boolean values) from the content of an XML document. XPath was defined by the World Wide Web Consortium (W3C)..

To map prefill data elements:

  1. Click New to create a new mapping.
  2. Select a property scope from the Parameter Scope dropdown list that can be:
    • Client for properties that should be set on an organization level.
    • Form for properties where values are specific to each form version.
    • User for properties sourced from the user profile.
  3. Select a parameter name from the Parameter Name dropdown list, for example Email.
  4. Enter a XPath to the valid XML element, for example //AvokaSmartForm/GettingStarted/Eligible/ContactDetails/EmailAddress.
  5. You can check the form XML structure in the Form XML Data tab. In our example, the .XML structure of interest is shown below.

    
    <?xml version="1.0" encoding="UTF-8"?>
    <AvokaSmartForm>
    	...
    	<GettingStarted>
    	...
    		<Eligible>
    		...
    			<ContactDetails>
    				<EmailAddress>
    				</EmailAddress>
    				...
    			</ContactDetails>
    			....
    </AvokaSmartForm>
    Note

    If the value is invalid, the error message is displayed: No XML element found for XPath: //EmailAddress.

  6. Click Save to update the changes.
  7. Check that the XPaths are mapped correctly.
  8. Click New to create another mapping or click Close to return to the form configuration.

Next, go back to form property prefill mapping to finish the configuration.