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 += […]
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 = […]
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 […]