Survey 155 en qid code answer assessment_value sortorder language scale_id cid qid scenario cqid cfieldname method value =]]> ]]> gid sid group_name group_order description language randomization_group grelevance qid parent_qid sid gid type title question preg help other mandatory question_order language scale_id same_default relevance <![CDATA[s2]]> <![CDATA[q1]]> = "30"))]]> <![CDATA[q2]]> "30"))]]> <![CDATA[q3]]> function check_s1(qcode){ //return('s1 is bad'); return(''); } function check_s2(qcode){ var answer="{INSERTANS:13541X93X2993}"; //alert(answer); if(answer=='Yes') return('');else return("s2 = 'No'\n"); } function check_s3(qcode){ var text="{INSERTANS:13541X95X2997}"; var answer = parseInt(text); //alert(answer); if(answer>=2 && answer<=30) return('');else return("s3 <2 OR >30\n"); } function check_s4(qcode){ var text="{INSERTANS:13541X96X2998}"; var answer = parseInt(text); //alert(answer); if(answer>=30) return('');else return("s4 <30\n"); } $(document).ready(function(){ //$('div.q3').hide(); alert("{INSERTANS:13541X93X2993}"); var error_log=''; var qualified=true; var qcode = 'q3'; error_log = error_log + check_s1(qcode); error_log = error_log + check_s2(qcode); error_log = error_log + check_s3(qcode); error_log = error_log + check_s4(qcode); if(error_log == ''){ $('div.'+qcode+' '+'td.answer input.radio')[0].checked = true; } else{ $('div.'+qcode+' '+'td.answer input.radio')[1].checked = true; $('div.'+qcode+' '+'p.comment textarea').val(error_log); qualified = false; } }); Qualified?]]> <![CDATA[s3]]> <![CDATA[s4]]> qid attribute value sid admin expires startdate adminemail anonymized faxto format savetimings template language additional_languages datestamp usecookie allowregister allowsave autonumber_start autoredirect allowprev printanswers ipaddr refurl publicstatistics publicgraphs listpublic htmlemail tokenanswerspersistence assessments usecaptcha usetokens bounce_email attributedescriptions emailresponseto emailnotificationto tokenlength showxquestions showgroupinfo shownoanswer showqnumcode bouncetime bounceprocessing bounceaccounttype bounceaccounthost bounceaccountpass bounceaccountencryption bounceaccountuser showwelcome showprogress allowjumps navigationdelay nokeyboard alloweditaftercompletion googleanalyticsstyle googleanalyticsapikey surveyls_survey_id surveyls_language surveyls_title surveyls_description surveyls_welcometext surveyls_endtext surveyls_url surveyls_urldescription surveyls_email_invite_subj surveyls_email_invite surveyls_email_remind_subj surveyls_email_remind surveyls_email_register_subj surveyls_email_register surveyls_email_confirm_subj surveyls_email_confirm surveyls_dateformat email_admin_notification_subj email_admin_notification email_admin_responses_subj email_admin_responses surveyls_numberformat
you have been invited to participate in a survey.

The survey is titled:
"{SURVEYNAME}"

"{SURVEYDESCRIPTION}"

To participate, please click on the link below.

Sincerely,

{ADMINNAME} ({ADMINEMAIL})

----------------------------------------------
Click here to do the survey:
{SURVEYURL}

If you do not want to participate in this survey and don't want to receive any more invitations please click the following link:
{OPTOUTURL}]]>

Recently we invited you to participate in a survey.

We note that you have not yet completed the survey, and wish to remind you that the survey is still available should you wish to take part.

The survey is titled:
"{SURVEYNAME}"

"{SURVEYDESCRIPTION}"

To participate, please click on the link below.

Sincerely,

{ADMINNAME} ({ADMINEMAIL})

----------------------------------------------
Click here to do the survey:
{SURVEYURL}

If you do not want to participate in this survey and don't want to receive any more invitations please click the following link:
{OPTOUTURL}]]>

You, or someone using your email address, have registered to participate in an online survey titled {SURVEYNAME}.

To complete this survey, click on the following URL:

{SURVEYURL}

If you have any questions about this survey, or if you did not register to participate and believe this email is in error, please contact {ADMINNAME} at {ADMINEMAIL}.]]>

this email is to confirm that you have completed the survey titled {SURVEYNAME} and your response has been saved. Thank you for participating.

If you have any further questions about this email, please contact {ADMINNAME} on {ADMINEMAIL}.

Sincerely,

{ADMINNAME}]]>

A new response was submitted for your survey '{SURVEYNAME}'.

Click the following link to reload the survey:
{RELOADURL}

Click the following link to see the individual response:
{VIEWRESPONSEURL}

Click the following link to edit the individual response:
{EDITRESPONSEURL}

View statistics by clicking here:
{STATISTICSURL}]]>
.printouttable { margin:1em auto; } .printouttable th { text-align: center; } .printouttable td { border-color: #ddf #ddf #ddf #ddf; border-style: solid; border-width: 1px; padding:0.1em 1em 0.1em 0.5em; } .printouttable td:first-child { font-weight: 700; text-align: right; padding-right: 5px; padding-left: 5px; } .printouttable .printanswersquestion td{ background-color:#F7F8FF; } .printouttable .printanswersquestionhead td{ text-align: left; background-color:#ddf; } .printouttable .printanswersgroup td{ text-align: center; font-weight:bold; padding-top:1em; } Hello,

A new response was submitted for your survey '{SURVEYNAME}'.

Click the following link to reload the survey:
{RELOADURL}

Click the following link to see the individual response:
{VIEWRESPONSEURL}

Click the following link to edit the individual response:
{EDITRESPONSEURL}

View statistics by clicking here:
{STATISTICSURL}


The following answers were given by the participant:
{ANSWERTABLE}]]>