How to show checkbox fields as comma-separated instead of a bullet list

By default, checkbox fields are displayed as a bulleted list. If you want to display them as a list of comma-separated values (CSV), you can do that with GravityView and a little bit of code.

Before and After

Screenshot of a bulleted list with 'first choice' and 'third choice' as bullet items. This is the default look for checkbox fields:


Screenshot of a bulleted list with 'first choice, third choice' as a single text item.
And this is how the field values look once they're converted to CSV.

The required code

To transform a list to CSV, you will need to add this code to your site's functions.php file:

If you need help adding the code, we recommend having Codeable to install it for you.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us