Tag Archives: confirmit

Javascript buttons for navigation

Here is an example of how you could use javascript buttons on a page. Inside a info node on the page if you add the name of your function. ^mainpage()^ In a script node if you name the function the same and enter the code – function mainpage() { var outputHTML = “”; outputHTML += […]

Read More

Confirmit array If statement

Quick code to check a selection of variables for a code of 2 which is a fail. Checks all of the top variables  [‘qnr_main_section1_PF’……..etc. If any of these are marked as code 2 and if so set var qnT = f(‘qnr_overall_QA_PF’); as 2 which is overall fail Else set to 1 which is pass var qIDsToCheck = […]

Read More

The Bitcoin Referral Page

Here is the Bitcoin/Cryptocurrency MoDCore referral page. Below is a selection of sites to gain free coins in order of our favourite ones. JSEcoin – Browswer Mining Jsecoin Mining – Web Masters  JSEcoin is great for webmasters who own a website. On this site you can mine coins using your browswer or add in script […]

Read More

Custom navigation button labels

This will let you change the label on a navigation button during a survey. Select survey settings, layout and inside the next button label put – ^f(‘nextBtn’).valueLabel()^     Within the survey you will need a hidden single question called – nextBtn This will need to have the required labels for the button Then script node to […]

Read More

Validation Scripts – RegExr

Here are a selection of RegExr validation scripts to use with error messages. Correct Email format   Checks to see if a email address has been formatted correctly if(!IsEmail(f(CurrentForm()))) {   RaiseError();   SetQuestionErrorMessage(9,”Please provide a valid email address.”); } Correct Telephone format Checks a open question has 11 digits without spaces, i.e Phone number […]

Read More

Merge string and respid

Merging a string with the respid of the respondent to create a unquie ID which is targetable by a survey, email or reportal report. Create a new DP rule and select the survey and add in a filter, the field we are populating will be “userid” so make sure this field is empty using the […]

Read More

Visual Countdown for open text field length

This will show you how to add a twitter like character count down on to any open question within your survey. First off we want to enable the jquery library in your survey. Survey themes, select the one you are using. In the external Javascript URL paste this address into it //ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js This script will […]

Read More