Registers the "fileUploadTrigger" funnel trigger type, letting a funnel automation be configured to fire when a file is uploaded to a website. Supplies the id, display title and description shown when choosing a trigger in the funnel automation editor, and builds a FileUploadFunnelTrigger instance from the submitted form when a developer configures one.
Group: Journeys
Implements: FunnelTriggerType
Properties
| Property | Returns | Description |
|---|---|---|
| description | String | Short description of what this trigger does, shown alongside its title in the funnel automation editor. |
| id | String | The type identifier for this trigger type, used to register it and to match it to FileUploadFunnelTrigger instances. |
| title | String | Display title for this trigger type shown when a developer chooses a trigger in the funnel automation editor. |
Methods
getId()
Returns: String
The type identifier for this trigger type, used to register it and to match it to FileUploadFunnelTrigger instances.
getTitle()
Returns: String
Display title for this trigger type shown when a developer chooses a trigger in the funnel automation editor.
getDescription()
Returns: String
Short description of what this trigger does, shown alongside its title in the funnel automation editor.
create(FormContext form)
Returns: FunnelTrigger
Builds a new FileUploadFunnelTrigger from the submitted form's website field, with no path filter and the default startsWith match mode.
| Parameter | Description |
|---|---|
form | the submitted form data for the trigger's configuration fields |