Linking Forms with Parameters

Updated on

One of the most powerful features of Sonic Forms is its ability to create complex workflows by linking multiple forms and iParts together.

Parameters in Sonic Forms

The key parameters used are the iMIS ID and the iMIS SEQN field used on the Activity table and multi-instance tables, however, any field that is available to your Sonic Form can be used as a parameter if necessary. A special Sonic Forms token value "@ff@" is used to retrieve the specified field value and add it to your URL.

Examples:
  1. Pass the ID to the next form or page:
    Enter the value as "?ID=@ff@ID" will display as "?ID=1243
  2. Pass the ID and sequence to the next form or page:
    Enter the value as "?ID=@ff@ID&SEQN=@ff@SEQN" will display as "?ID=1243&SEQN=405"
  3. Pass the ID and program type (field name is "PROGRAM") to the next form or page:
    Enter the value as "ID=@ff@ID&PROGRAM=@ff@PROGRAM" will display as "?ID=1243&PROGRAM=SENIOR"

Using Parameters in Sonic Forms

Parameters settings are defined in two ways:
- The overall record is defined by the ID field. This is used to determine which Contact or Single-instance record is retrieved.
- An individual record from a multi-instance or activity table is defined by its Sequence (SEQN) value which is an integer starting at 1. You can specify which record is used on a form by defining the Load and Save options for the Form Part in question.

See: Multi-instance and Activity Fields