Advanced Programming
From qualtrics
(→How to change the width of text boxes in question types other than Text Entry) |
|||
Line 1: | Line 1: | ||
- | == How to change the width of text boxes in question types | + | == How to change the width of text boxes in question types == |
- | You can paste the following CSS code either into an individual question or into your [[header]] to apply to the entire survey (Find the header in the [[Look and Feel]] section). Then, you will adjust the width value to meet your needs. | + | You can paste the following CSS code either into the "code view" of an individual question or into your [[header]] to apply to the entire survey (Find the header in the [[Look and Feel]] section). Then, you will adjust the width value to meet your needs. |
<BR><style> | <BR><style> | ||
Line 8: | Line 8: | ||
<BR>} | <BR>} | ||
<BR></style> | <BR></style> | ||
+ | |||
+ | |||
+ | For Side by Side Questions | ||
+ | |||
+ | <BR><style> | ||
+ | <BR>.Skin .SBS .Short { | ||
+ | <BR>width:50px; | ||
+ | <BR>} | ||
+ | <BR></style> | ||
+ | |||
+ | Change the number to change the width | ||
== How to give feedback based on answers to multiple choice questions == | == How to give feedback based on answers to multiple choice questions == |
Revision as of 15:48, 9 July 2010
Contents |
How to change the width of text boxes in question types
You can paste the following CSS code either into the "code view" of an individual question or into your header to apply to the entire survey (Find the header in the Look and Feel section). Then, you will adjust the width value to meet your needs.
<style>
Skin .QuestionBody .TextEntryBox {
width:10em;
}
</style>
For Side by Side Questions
<style>
.Skin .SBS .Short {
width:50px;
}
</style>
Change the number to change the width
How to give feedback based on answers to multiple choice questions
The calculations and feedback are achieved by using the Scoring feature available in Advanced Survey Options during survey editing. The scoring feature allows you to assign numerical values to the multiple choice questions and then add the scores.
Feedback based on the score can be determined by a series of questions using display logic. First, the score must be set as embedded data after the data-gathering block through the survey flow. In the next block, you can call on this embedded data to create your display logic and display different sets of feedback depending on the score.
How to require a respondent to spend minimum time per page
Add the following to the "Add to javascript" question option:
Qualtrics.SurveyEngine.addOnload(function()
{
this.hideNextButton();
this.clickNextButton.delay(1500);
});
How to save information from a URL
In order to save information from a URL, you will need to embed the data. Otherwise, the information does not automatically get stored anywhere in your survey.
- Identify the variable name from the URL. For example
- http://umich.qualtrics.com/SE?SID=SV_eXNfcfUHy&SVID=Prod&UID=123456
- The variable name comes between “&” and “=”
- In this case it is “UID”
- This variable will need to be embedded in order to be saved to the results of the linked survey.
- To embed data, use the Survey Flow tool. From Edit Survey, go to Survey Flow.
- Find the Block where you collect the subject information. Click “Add Below” and Click “Embedded Data”.
- Set any Embedded Data Field Name of your choice
- Write the embedded field name as the variable from the URL and allow Qualtrics to Set the Value from the Panel or URL
- Your subject information should appear in the results section under a column called “UID” and is available for passing to other surveys through redirect URLs.
- The subject information is saved using the code ${e://Field/UID} – you can now use this code to pass onto more linked surveys. For example,