1️⃣Widget API
Функції та механізми, якими можна керувати віджетом
Last updated
Функції та механізми, якими можна керувати віджетом
Last updated
Opening the widget:
JediDesk("openWidget")
Use this function to open the widget window at the desired time.
Close the widget:
JediDesk("closeWidget")
Use this function to close the widget window at the desired time.
Transfer of user data:
JediDesk("customerData", {
"name": "test",
"phone": "380989888999",
"email": "test@test.test",
"note": “Description”,
"language": "en",
"custom_fields": [
{"id": 1, "value": "123"},
{"id": 2, "value": "test"},
{"id": 551, "value": "test321"}
]
})
Use this function to fill and transfer widget user information at the right time.
Allowed fields to transfer:
Parameter
Type
Description
name
string
Username
phone
string
User's phone number
string
User email
note
string
Additional user description, notes
language
enum('uk', 'en', 'ru')
User language
custom_fields
array
Customizable fields. An array of objects. Object parameters:
id - unique id of the field (assigned when creating a field in the admin panel).
value - field value.