Use cases:
A custom node type with a field that is set to allow multiple values (say documents as attachments). When the node is displayed as a teaser, there is a need to show the count of how many attachments have been added (not the actual attachments). How can one achieve this with the current core functionality?
A views listing of nodes of the type from the use case 1 above. Same deal, the count of the attached files needs to be displayed in a column. The only way I can think of in order to achieve this currently is to rewrite the output of the field using php (I think that this would require https://www.drupal.org/project/views_php which has not been ported yet) and mess with deltas (which novice users might not understand).
There's a module in d.org contrib that does that: https://www.drupal.org/project/field_count_formatter
Display formatter:
Views formatter:
I think that this would be a very nice addition to core views and field display formatters that would simplify a not so uncommon task.
Recent comments
The horrors of cut/paste! Brilliant, thanks.
SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value:
The issue could be related to the Emojis in the body field. Can you check the Status report (admin/reports/status) for the item MySQL Database 4-byte UTF-8 support? To display Emojis, 4-byte UTF...
SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value:
@argiepiano, thanks a lot! For Webform it will be always "webform_client_form_NID", correct?
How to add Webform ID to Captcha module?