Tag Archives: ModCore Code

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

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();     […]

Read More

Confirmit

Confirmit Horizons Manage the Complete Market Research and Voice of the Customer Lifecycle The Confirmit Horizons platform provides you with everything you need for end-to-end management of Voice of the Customer programs, Voice of the Employee programs, and Market Research projects. Confirmit powers Global 5000 companies and Market Research agencies worldwide with a wide range […]

Read More