SharinPix Forms - Context Parameters

Overview

Context Parameters allow you to pass custom values to a SharinPix Form when it is launched. These parameters become available throughout the form and can be used in formulas to control behavior, customize content, and adapt the form to different use cases.

This documentation covers:

  • What are Context Parameters

  • Passing Context Parameters

  • Using Context Parameters in Formulas

Prerequisites:

What are Context Parameters

Context parameters are key-value pairs passed to the form via the URL when launching it. Once passed, these values become available throughout the form and can be accessed using the form.params object.

Example: If you launch a form with &context=inspection in the URL, you can access this value anywhere in the form using form.params.context. This returns "inspection".

Passing Context Parameters

Context parameters are passed as URL query parameters when launching the form.

URL Format

Universal Link:

Deeplink:

Using Context Parameters in Formulas

Below are usage examples of Context Parameters in Formulas for a dynamic SharinPix Form.

Conditional Visibility

Show different form sections based on the context

Visibility Formula:

This makes the element visible only when context=inspection is passed in the URL.

Example URL:

The form launches with the inspection section. The section was not visible on the editor since the Context Parameter was not present there.

Use Case

Create a single form template that adapts to different scenarios:

  • context=inspection → Shows inspector-related fields

  • context=customer → Shows customer-related fields

Dynamic Default Values

Pre-populate fields with values from the URL:

When launched with &stage=Initial, the field defaults to "Initial".

Example URL:

The image below shows the form launched with the Context Parameter stage=Initial.

Last updated