📝 Improve prefilled variables clarity
This commit is contained in:
@ -128,12 +128,12 @@ You can add hidden variable values in your embed code by adding the `hiddenVaria
|
||||
Typebot.initContainer('typebot-container', {
|
||||
url: 'https://viewer.typebot.io/my-typebot',
|
||||
hiddenVariables: {
|
||||
'Current URL': window.location.href,
|
||||
'Current URL': 'https://my-site/account',
|
||||
'User name': 'John Doe',
|
||||
},
|
||||
})
|
||||
```
|
||||
|
||||
It will populate the `Current URL` variable with the parent URL and the `User name` variable with "John Doe".
|
||||
It will prefill the `Current URL` variable with "https://my-site/account" and the `User name` variable with "John Doe". More info about variables: [here](/editor/variables).
|
||||
|
||||
Note that if your site URL contains query params (i.e. https://typebot.io?name=John), the variables will automatically be injected to the typebot. So you don't need to manually transfer query params to the bot embed configuration.
|
||||
Note that if your site URL contains query params (i.e. https://typebot.io?User%20name=John%20Doe), the variables will automatically be injected to the typebot. So you don't need to manually transfer query params to the bot embed configuration.
|
||||
|
Reference in New Issue
Block a user