Multivalue List Formatter
Security covered
This module provides a field formatter for multi-value text fields that displays the values as a grammatically correct sentence. It allows you to add custom prefixes, suffixes, and control the use of Oxford commas and joinders to create natural-sounding lists.
This module contains a field formatter for multivalue text fields to list the values in a grammatically correct sentence.
For example if you have a field for your favorite fruits, with values apples, bananas, and oranges, and you want to output that in a sentence you could use this formatter in the content display method of your choice.
For example:
- Prefix: "My favorite fruits are"
- Suffix: "."
- Use Oxford comma: checked
- Joinder: "and"
Would output: My favorite fruits are apples, bananas, and oranges.