Is there a way to prevent new line characters in a text question? The results of my survey are eventually placed in a pipe-separated text file. Having new lines (or CRLFs) in a delimited text file really messes things up.
I thought using an input filter or possibly changing the keyboard to hide the return key.
You could have the question users see be a dummy question, then have the real question be hidden and calculated with an expression that strips all newline characters out of the dummy question.
Looking at the list of S123 formulas, I think you'll need to resort to a custom JS function to do this.
Looking at the Survey123 formulas, I noticed regex(). I think that it may work to remove CR and LF characters from the input. I'd also like to remove leading and trailing spaces. I need to review regular expressions. It might be easier to write a JS function.