I am asking a matrix question with a series of statements and three answer choices. If respondents select "A lot" or "Not at all" for any of the items, we are asking a follow-up question that amounts to:
"What about those things you said 'a lot' were good?" and "What about those things you selected 'not at all' for could be improved?"
There are many items and it would be excellent if I could add "and" before the last item. Right now they're just coming out as a comma separated list, which is fine, but it'd be cool to add the and with an oxford comma. Is there some simple javascript solution that could do this for me?
In case it's helpful there is a page break between the matrix and open-ended questions and I have a second set of each question if they only select one (that is, "What about that thing you selected" vs. "What about those things you selected") and I'd only need to add the "and" for the "I selected multiple items" questions.
Question
Add 'and' before the last item in "Selected Items" piped text
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.