Better support for likert as collections of questions

Created on 19 September 2024, 2 months ago

Webform's likert questions are structured to pose a question, and to have one or more evaluations for that question.

Currently, using drupal features such as Views, tokens, etc., the content of a likert response is a blob of text that shows all of the questions and answers. It is not possible to access the sub-questions in a likert as question/answer in a structured way.

Internally, this structure exists, but that is not leveraged in features for displaying likert results.

It would be a nice feature to treat likerts like a compound question, or to provide means of accessing the structured data via tokens, so that one can, for instance, reference the parts of the likert, and its (sub-)question and answer.

A use case here is when one would want to map input from likert to a salesforce object using the salesforce module. Currently, tokens just output the entire likert and cannot access individual questions within the likert.

I have gone over the code in the module and could not find a way to do what I am describing. If I am wrong,please correct me! :-) thank you

✨ Feature request
Status

Active

Version

6.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States bob.hinrichs

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @bob.hinrichs
  • πŸ‡¨πŸ‡¦Canada Liam Morland Ontario, CA πŸ‡¨πŸ‡¦
  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    Yep, there is very limited support for extracting a Likert's questions.

    This would have to be done via the webform_views.module for view support.

    It is possible to improve the webform module's Likert token support

    The attached webform and patch adds POC support for [webform_submission:values:{likert}:{question}:raw] and [webform_submission:values:{likert}:{question}:raw] tokens.

    For this feature request to be completed, code, examples, and tests must be created.

Production build 0.71.5 2024