survey_answer_split

Filter to split multi-value survey answers on the '#' character.

If a question can have multiple answers then they can be stored in a single string separated by the '#' character. This filter splits such strings.

Examples of usage:

{{ answer | survey_answer_split }}

will split the variable 'answer' on the '#' character.

Question types that can have multiple answers are:

  • thurstone

  • multiple choice

  • category select

Edit on GitHub