Question T4655
Visible to All Users

Using a custom property 'score:number' in choices/rating in visibleIf expressions

created 5 years ago

dear surveyjs team,

i'm trying to solve the following objective with surveyjs and would consider to purchase a commercial license to achieve it:

  • we have a small series of image picker questions.
  • (side note: i don't seem to be able to insert text underneath the images, in the sense of a caption – i've inserted "text" under "choices" but the text doesn't show up neither in safari nor in chrome)
  • depending on the user's choices, we would like to enable different endings for the user. for example, user1 enters question1{a}, question2{b}, question3{a} and then receives ending1, user2 enters question1{b}, question2{b}, question3{c} and then receives ending2. the idea behind this is that a user receives a kind of an assessment at the end.
  • doing a full permutation with the 15 choices and using rules we have isn't feasible (using visibleIf, and there is no scoring system that i understand could be applied, or am i wrong? in the sense of e.g. (question1{a}=90) + (question2{b}=40) + (question3{a}=20) = Score=150 -> ending1.
  • how could such a multiple ending scenario be achieved using surveyjs? and how do i solve the caption issue? my email is steffen.walz@diconium.com.

thank you for letting me know!

kind regards,
steffen

Show previous comments (5)

    hi andrew,

    i see! i had asked because in the code comments, it says that "rating/dropdown/radiogroup" only. one last question:

    how can i add text to the image picker, so that it appears for the user underneath each image that can be chosen? i've inserted "text" under "choices" but the text doesn't show up neither in safari nor in chrome.

    thank you for your support,
    spw

      Hello,

      The image picker question also has the choices property thus the code above should work.

      how can i add text to the image picker, so that it appears for the user underneath each image that can be chosen?

      I think you need to set the https://surveyjs.io/Documentation/Library?id=questionimagepickermodel#showLabel property to true.

      Thanks, Serge
      SurveyJS Team

        hi serge,

        fantastic, it now all works, incl. labels are being shown, thanks so much!

        cheers,
        spw