typebot.io icon indicating copy to clipboard operation
typebot.io copied to clipboard

setVarible undefinied

Open rmarcelos opened this issue 1 year ago • 3 comments

setVariable function into script block returning undefinied error on 2.27.0

Works perfect in 2.24.0, when downgraded

rmarcelos avatar Aug 07 '24 18:08 rmarcelos

Hey,

Can you clearly describe it by following this template:

  1. Steps to reproduce
  2. What's happening
  3. What were you expecting

It's even better if you can provide a screen recording.

This ultimately allow me to reproduce the bug so that I can fix it properly.

baptisteArno avatar Aug 12 '24 13:08 baptisteArno

  1. I will take a time to reproduce
  2. I get an error that says "setVariable() function is not definied"
  3. I was expecting to update the value of a variable using the mentioned function into the script block

rmarcelos avatar Aug 16 '24 03:08 rmarcelos

Please provide a reproduction

baptisteArno avatar Aug 16 '24 16:08 baptisteArno

Closing. Feel free to re-open if you have more info

baptisteArno avatar Nov 12 '24 15:11 baptisteArno

The error occurs because the script is executed in client mode. In this mode, setVariable is not available.

MicaelHernandes avatar Nov 04 '25 21:11 MicaelHernandes