Python > JS error on Pavlovia using continueButton

Hello,

I hope you are well, whoever is reading this inquiry!

I am in need of assistance in using the continueButton function using custom code.
As of now the code reads as:
# update/draw components on each frame
AQ.draw()
continueButton.draw()

if AQ.formComplete():
    continueButton.buttonEnabled = True
    
if continueButton.buttonSelected:
    continueRoutine = False

# check for quit (typically the Esc key)
if endExpNow or defaultKeyboard.getKeys(keyList=["escape"]):
    core.quit()

Issue: This code seems to not run on Pavlovia as there may be a detail I am missing that is not translated correctly to JS.

Looking to find any help around this! I’m a super novice using Psychopy and Pavlovia, but I am willing to learn… although, multiple failed trial and error attempts with different bits of code become frustrating.

Thanks in advance!

Hi

I’m afraid that forms don’t yet work online. The recommendation is to either use sliders and polygons for buttons or use external questionnaire software.

If you are coding online experiments in PsychoPy this please do read my crib sheet (pinned post)

I’d also suggest that you delete your post to the core clock thread since this isn’t your issue. (Translating core clock is in my crib sheet)

You should also avoid.draw when using Builder.

Best wishes

Wakefield

Hello wakecarter,

Thank you so much for your response and for the crib sheet reference!

All the best,
Marie