Actions

Translations

Translations:ExpressionScript - Presentation/57/en

From LimeSurvey Manual

Some examples:

  • Set answer to a short text question in lowercase : {QCODE=strtolower(QCODE.NAOK)};
  • Set a default answer to an array question type at start of a survey : {Q1_SQ1=(is_empty(Q1_SQ1.NAOK),"A99",Q1_SQ1.NAOK)};
  • Set a default answer to an array texts question type at start of a survey : {Q1_SQY1_SQX1 = (is_empty(Q1_SQY1_SQX1.NAOK),"Inserted answer", Q1_SQY1_SQX1.NAOK)};
  • Set an answer with condition : {QCODE=if(YesNo="Y","A1","")}.