Error in adding free-ranging participant text to online experiment

Hi @dvbridges
Sorry to circle back again about this. Everything works smoothly now, but the participant’s .csv output file doesn’t include the free-range text data.

I came across a thread with the code to save, but it’s in python (for Builder).

I tried to convert it to JS using online examples, but it’s not working. Would you please help me with this part as well?

if (textAdd) {
        thisRoutine.addData;
       }

Many thanks,
Mira