Python to JS Trouble

In general, you’ll need to set your Code Type to ‘Both’ instead of ‘Auto>JS’ to modify the auto-translation. The problem is that that setting is the default, every time you close the code snippet it will go back to it and you need to be careful that it doesn’t accidentally overwrite the correct code.

For the text input, go to the text input demo and use their Javascript code (Sign in · GitLab) > download the whole demo, open it in builder and take those code snippets.

For adding data, you’ll need

psychoJS.experiment.addData

Are you using a rating scale in your code? From what I understand (although maybe it has changed by now), rating scales aren’t implemented yet on Pavlovia

Finally, with regards to your if conditions in general, I found that JS doesn’t like this:

if (((Popup_Presence ===1) && Email_Response.keys))

It wants:

if (Popup_Presence ===1 && Email_Response.keys)

So different ways of putting brackets.
Hope this helps a little. I feel your pain, it took me 4 weeks in total to get my study up in running in builder and online.