Search code examples
phpsurveylimesurvey

Limesurvey : comfirm a fields


I have two fields on a survey, mail and confirmail.

The second fields is only to insure than our first field is entered correctly, but I can't find a validation rule allowing me to check the confirmail according to the mail field.

Any suggestion ?


Solution

  • Assuming the question code for the first question is "mail", you can place something like this in the "Question validation equation" field of the second question:

    this == mail
    

    Then, something like this in the "Question validation tip" field:

    {if(this != mail, 'The email addresses do not match!', '')}