Home > FAQ, Survey Creation > How to pipe text objects in you survey

How to pipe text objects in you survey

Overview

The following steps will introduce you to various usages of the ‘SetText’ methods which are very useful and commonly used in STG.

With the ‘SetText’ method’s you will be able to pipe text objects in different places in your survey, making it much more flexible and adjustable to the respondent’s answers.

For example, you can pipe the text of answers chosen, inside the surveys questions and answers you determine.

Setting text objects inside a questions body.

  • Set up the following identifiers {x} for the amount of different text objects you wish to pipe.

    (each identifier will be replaced with the string you decide)

  • The following commands are being commonly used in order to do so:

    SetTextFormat (Of Which Question?, text for {0}, text for {1}, etc’)

    SetAnswerTextFormat( Which Question?, Which Answer?, text for {0}, text for{1}, etc’)

    SelectedAnswerText(Which Question?)

  • For Example, The following script will pipe the text of the selected answer from question 1 instead of {0} and text of the selected answer from question 2 instead of {1}.
    SetTextFormat
    (CurrQues,SelectedAnswerText(1),SelectedAnswerText(2));


Setting text objects inside a questions answer.

  • Let’s take for example the following basic MultiChoice question:

  • Let’s use the previous question’s answer in order to adjust the followings question’s answers!

  • The following script will take the text from question 4 answer and pipe it where we placed the identifiers.
    SetAnswerTextFormat(5,1,SelectedAnswerText(4));
    SetAnswerTextFormat(5,2,SelectedAnswerText(4));
  • Eventually it will look like this:

That’s it! This is how to pipe text objects in your survey.

Of course you can use those methods in a vast variety of ways in order to make your survey flexible and adjustable.

Visit us at: http://www.dooblo.net

Categories: FAQ, Survey Creation
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: