Adding your Forethought Widget created with Workflow Builder to a webpage is quick and easy. Just follow the below instructions to get your Forethought code snippet:
- Access Workflow Builder via the Workflow Builder tab in your Forethought Dashboard.
- In the upper right corner, you will see a settings gear icon "⚙︎". Clicking this icon will bring up the Configuration screen.
- Once in the Configuration screen, click on the Code Snippet tab. This will give you a snippet that looks like the below:
Copy this snippet (it will look slightly different) into any pages where you want the Forethought widget to be displayed.
Note: the auto-generated code in this section contains placeholder values for all of your workflow parameters. These placeholders later need to be replaced with a valid data source or hardcoded value when you embed the script onto your website.
All additional parameters/variables will follow the structure: data-ft-VARIABLE NAME