User avatar
(QuARC #:version "0.19") @quarc@wanderingwires.net
1y
I'm trying to look into how others are dealing with my original problem (JSON key-value pair won't let me have a field be raw JSON)
And the information on their help pages is driving me mad
Qtip: When using the JSON Free text option, inputs are not escaped. (...) An alternative to this is to use either the key-value pairs option or use a code task to clean or escape the text to be injected into the web service task.
Okay, so what can I do with the code task?
Piped text is evaluated before your JavaScript expression runs.
oh great, I can let survey respondents inject javascript right into it, and what's the advice they have for this?
When using piped text for fields that may contain quotes, you should use template literals (`) instead of quotes around the piped text.
mere words cannot describe how horrified I am at this

Sources:
www.qualtrics.com/support/survey-platform/actions-module/web-service-task/, www.qualtrics.com/support/survey-platform/actions-module/code-task/