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 = […]
Printing from Capi – Page Breaks
How to force page breaks when printing from Capi We have been working with printing from the Capi console (Confirmits Offline completion app). We are having to print off a results page. There is a couple of different sections ont he print out that require a start of a new page when printing. This will […]
Question Validation Codes
Date picker, has to be X days in the future from today Exact date is a picker for the user, change anything in bold to fit your needs var a = f(“exact_date“).toDate(); var today : DateTime = DateTime.Now; var todayPlus7 : DateTime = today.AddDays(7); if(a < todayPlus7) { RaiseError(); […]
MoDCore Code
Code section of MoDCore Here you will find the section of the site which is all code related! Pages are below to help navigate around. If you dont find what you are looking for leave a post in the forums. If you find any errors with the code, please leave a comment and we can […]