Interactions

Examples and code snippets using the Forms Synergy API

Events Using Options
Events Using Options

Creating and manage options accessible from anywhere. In this example we will create two options to track the status of a certain process.

Events Using Counters
Events Using Counters

The counter method provides counting  functionality accessible from anywhere. In this example we will create two counter to count the recurrence of events on a specific input.

Sequenced Interactions
Sequenced Interactions

In this example we are creating a method to manage the result of events triggered by multiple elements. When a method has succeeded, it will fire an interaction.

Multiple Interactions
Multiple Interactions

In this example we are binding multiple events on multiple elements.  

Custom Events
Custom Events

This example is slightly more complex, the goal is to apply a custom event to a related element. Create a relation between elements: Note: This type of relation is enable... View Article

Page Scroll
Page Scroll

In certain cases, let’s assume that a visitor scrolled through a page beyond a certain focal point. This example will show you how to rescue an opportunity.

Exit Strategy
Exit Strategy

We can trigger an interaction before exiting a certain page, by specifying a path. This type of interaction is trigger once per path.

Focusing on Related Element
Focusing on Related Element

One thing to keep in mind, during interactions, etags and parameters are reserved to the API, keeping them intact is always recommended. Alternatively, related elements are not reserved, and can... View Article

Embedding  on Page Load
Embedding on Page Load

In this example we are loading the body of an interaction inside an element on page load.

Load on Click
Load on Click

In this example, on the click of a button, we are loading and embeing the contents of an interaction.