Views, add field value as class to list element
The question is a bit old, but i was looking for the same.
The answer is for drupal 7 / views 3.5, and works fine on Drupal Views 8 || 9 as well..
You can use some field replacement patterns when specifying the classname for the row (in the view edit : Format / Settings / Row Class )
To do so, on the same settings page you may have to check the box 'force using fields'
You then have to make sure the field you want to use is added to the fields section of the view edit
To know what pattern you can use, click on the field in the fields section and go to 'rewrite results' / 'rewrite the output of this field', there is a 'replacement patterns' block that will show you the available patterns.
hope that help, I'm still stuck though by the fact that the string you will get is not class friendly and may contain spaces.