[solved] ISI
Hi there
I am using the inline script with the following details:
import random
ISI_options = [1000,1500,2000,2500]
ISI = random.choice(ISI_options)
exp.set('ISI', ISI)
When I use OSWEB, it shows an error as follows:
Uncaught TypeError: Cannot read property 'apply' of undefined
Please could you kindly advice what to do helps replacing the relevant commands to have it run on the OSWeb?
Peace,
Masoud

Comments
Hi @mfp49 ,
Herewith the JavaScript translation. Make sure to put this code in an
inline_javascriptitem rather than the classical Pythoninline_scriptitem.I attached a simple example experiment.
Cheers,
Lotje
Did you like my answer? Feel free to

Dear Lotje
Many thanks. Works perfect!
Great to hear @mfp49
Did you like my answer? Feel free to
