Actions

URL fields/nl: Difference between revisions

From LimeSurvey Manual

(Created page with "===Antwoordvelden===")
No edit summary
Line 8: Line 8:
Er zijn een aantal velden beschikbaar die gebruikt kunnen worden in deze URL.
Er zijn een aantal velden beschikbaar die gebruikt kunnen worden in deze URL.


===Basis velden===
===Basisvelden===


Je kunt de velden {SAVEDID}, {TOKEN}, {SID} en {LANG} in de URL gebruiken.
Je kunt de velden {SAVEDID}, {TOKEN}, {SID} en {LANG} in de URL gebruiken.

Revision as of 15:12, 7 August 2013

Algemeen

Na het invullen van de enquête, of wanneer er door een quota een enquête afgebroken wordt, is er een mogelijkheid om een URL aan te geven. Deze URL wordt aan de respondent getoond op de afsluitpagina. Je kunt ook instellen dat de respondent automatisch naar deze URL doorgestuurd wordt.

Er zijn een aantal velden beschikbaar die gebruikt kunnen worden in deze URL.

Basisvelden

Je kunt de velden {SAVEDID}, {TOKEN}, {SID} en {LANG} in de URL gebruiken.

  • SAVEDID is het id dat toegekend is aan deze ingevulde enquête
  • TOKEN is het token van de respondent voor deze enquête
  • SID is het ID van de enquête
  • LANG is de taalcode (vanaf versie 1.71+)

Voorbeeld

http://www.limesurvey.org/test.php?var1={SAVEDID}&var2;={TOKEN}&var3;={SID}⟨={LANG} (externe link)

Antwoordvelden

You can also use {INSERTANS:SGQA} in this URL (since 1.82+).

  • {INSERTANS: SGQA} allows adding the response to a specific question in the survey to the final url. This can be useful for sending a response to an external script (ie an email address collected during the survey).

Example

"http://www.limesurvey.org/test.php?email={INSERTANS:1234X56X7}"

Expressions

You can also use any Expression Manager expression (since 1.92+).

Example

"http://www.limesurvey.org/test.php?gender={if(sex=='Male','M','F')}&name;={name}

Passthrough fields (LimeSurvey 2.x or later)

Starting with version 2.0 you now have to define any additional parameters that should be passed to the end URL in the survey settings (Tab "Panel integration"). To use such a parameter in the end URL just insert the tag {PASSTHRU:<paramname>} where <paramname> is the name of your input parameter.

Example:

You defined in the Panel integration tab a parameter named 'foobar'. The survey is started with a link like

  http://localhost/limesurvey/index.php/survey/index/sid/12345/lang/eb?foobar=XYZ123

where XYZ123 is the value you want to pass.

A survey end URL of "http://www.limesurvey.org/test.php?foobarout={PASSTHRU:foobar}" would then convert to "http://www.limesurvey.org/test.php?foobarout=XYZ123"

Passthrough fields (LimeSurvey 1.92 and older)

You can also use a 'passthrough' field name and data value in the end URL.

In some instances you may want to pass a value to the survey at initialization, and then have that value passed through to an external script at the end (for example a marketing firms subsid).

Example

In this case you'd start the survey with the query url "index.php?sid=12345&passthru;=subsid&subsid;=9999".

In your URL you would use {PASSTHRULABEL} and {PASSTHRUVALUE} to reuse these values at the end of the survey.

A URL of "http://www.limesurvey.org/test.php?{PASSTHRULABEL}={PASSTHRUVALUE}" would then convert to "http://www.limesurvey.org/test.php?subsid=9999"

Places to use URL fields

URL fields can be used in the general survey exit URL (see Creating a new survey ), and in the URL setting for each individual quota (see Quotas ).