Question T5386
Visible to All Users

How to setup and use placeholders like {correctedAnswers}?

created 4 years ago (modified 4 years ago)

[Ticket cloned from T3318: Show the result to the user (preferably with score)]

Hi Andrew, thank you!
I am trying to find documentation and examples on how to setup and use placeholders like {correctedAnswers} in your example above. How do you refer to them in SurveysJs?

Answers approved by surveyjs Support

created 4 years ago

Hello,
Please describe your task in more details.

Thank you,
Andrew
SurveyJS Team

    Show previous comments (3)

      Hello Hanz,
      In most cases you want to use question names and calculated values in text preprocessing. Here is the example.
      {correctedanswers}, {incorrectedanswers}, {questioncount} - they are for quiz mostly and people use them when they replace the completedHtml property. The text/html that an user sees when he/she completes the survey/quiz. Here is the example.

      Do you have any specific question? Probably you want to accomplish something.

      Thank you,
      Andrew
      SurveyJS Team

        Hi

        is there a way to use "correctedAnswers / incorrectedanswers and questioncount" value in expression, like: "{correctedAnswers}*10+'%'".

        Thanks.

          Hello,

          I created a separate ticket on your behalf: (T6722: is there a way to use "correctedAnswers / incorrectedanswers and questioncount" value in expression). We placed it in our processing queue and will process it shortly.