# Online experiment can't run elementarray function

**URL:** https://discourse.psychopy.org/t/online-experiment-cant-run-elementarray-function/24957
**Category:** Online experiments
**Created:** [September 14, 2021, 3:37pm UTC](https://discourse.psychopy.org/t/online-experiment-cant-run-elementarray-function/24957 "2021-09-14T15:37:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![DutPsych](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dutpsych/32/30661_2.png) [@DutPsych](https://discourse.psychopy.org/u/DutPsych)
#### Post date: [September 14, 2021, 3:37pm UTC](https://discourse.psychopy.org/t/online-experiment-cant-run-elementarray-function/24957/1 "2021-09-14T15:37:17Z")

</div>

Description of the problem:

Hello everyone,

I am trying to make an online experiment with “elementarray” function from the visual library.

My experiment works very fine in the builder offline but when I try to play it in pavlovia, there’s an error message :

 ![Capture d’écran (3)](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/3/d/3de012c79c012656e6612f3635b8d864fbbc417f.png)  
 ![Capture d’écran (2)](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/1/5/15eb01df5a3c0914794a9466d055232ec3f5bf92.png)

For first trials online, i used the most simple way to use this function as you may see :

 ![Capture d’écran (7)](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/2/3/23b302b51a52d1f1f7119c8534401e27c687bcc3.png)  
 ![Capture d’écran (6)](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/b/4/b4f04c0c33a4bf567dc553f2e42696001dff67ad.png)  
 ![Capture d’écran (5)](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/e/3/e3bc810261d94f1fc4c119ba882ce2c22f76e154.png)

Is this function coded in the java script library ?  
Does any easy modification of the code exists to make this work ?

Thank you a lot for reading my message,

Best wishes

---

<div class="post-metadata">

### Author: ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)
#### Post date: [September 15, 2021, 9:03am UTC](https://discourse.psychopy.org/t/online-experiment-cant-run-elementarray-function/24957/2 "2021-09-15T09:03:21Z")

</div>

Hi @DutPsych , I cannot see any entries for ElementArrayStim in the [PsychoJS API](https://github.com/psychopy/psychojs), so may still be in development.
