Developing Forms with Pipelines

With Salesforce B2C Commerce, you can define how ecommerce forms, such as customer address entries, are processed. This includes validation, manipulation and extraction.
  1. Open Studio.
  2. Describe the form fields, validation rules, and other metadata for the form in an XML-based form definition file.
    A form field definition can also reference metadata in B2C Commerce.
  3. Create a template that uses the form definition and associated metadata to assemble the form.
  4. Write a pipeline that:
    1. Initializes the form data via a pipelet.
    2. Creates the in-memory form instance via a pipelet (using the form definition).
    3. Renders the ISML template with an Interaction Continue node (referencing the data in the in-memory form instance).
    4. Validates the entered data.
    5. Exits with a transition based on a named action (as defined in the form definition).
    6. Processes the form data returned from the Interaction Continue node.
  5. Integrate these changes into an existing application. For example, if you create a new subpipeline, you must modify an existing subpipeline to call it.
See also How Pipelines Process Forms and B2C Commerce Forms Components
X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.