You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible by using the Embed Script to modify the initial state of the journey. There are the following posibilities:
29
+
1. Setting an intial data for the journey: doing this will prefill the blocks with data.
30
+
2. Starting the journey from a specific step: doing this will start the journey from the specified step if it was combined with the initial data, one can achieve a case when a product is selection is done in an external website, injected into the journey, then the in journey selection step skipped.
31
+
3. Set display options for the journey fields (for now disabling fields)
32
+
33
+
The following DataInjectionOptions type shows what is possible. However we ask devs to go to our [epilot Journey SDK](https://github.com/epilot-dev/epilot-journey-sdk) project which includes more documentation supported with examples.
34
+
35
+
**Type Definition**
36
+
```typescript
37
+
exporttypeDataInjectionOptions= {
38
+
/** the initial step index of the journey. aka, where to start the journey from */
39
+
initialStepIndex?:number
40
+
/** the initial state of the journey. aka, what data to prefill the journey with */
41
+
initialState?:Record<string, unknown>[]
42
+
/** the display options to be passed to the journey, for now it is used to disable some fields */
0 commit comments