Add Validation Types

Overview

Summary

Key Value
Official Name AddValidationTypes
Short Description add and remove custom validation types via the Control Center's "Field Validation Types" page
Author Adam Nunez <Adam.Nunez@ctri.wisc.edu>
Homepage URL https://github.com/uwctri/AddValidationTypes
Most Recent Update 2024-09-09
Version Number 1.1.2
Complexity Medium
Setup Time NA
Viewable by Users? Yes
Security Risks None
Does data leave REDCap? No

Description

This module allows you to add and remove custom validation types via the Control Center's "Field Validation Types" page. The new validation types act just like all other native validation types; that means they are hard stops, work on data loads, and can be disable (but still usable via a data dictionary upload).

User Notes

Enabling the Module (after installation)

To use this module in REDCap, enable the AddValidationType module in the External Modules page of your REDCap project.

After selecting "Enable a module", you can search for and enable the Add Validation Types module.

Searching for the module
Search for the "Add Validation Types" module (enlarged image)
Post module installation dialog
"Add Validation Types" module post-installation (enlarged image)

Setting up action tags (after enabling the module)

After enabling this module, please add the following action tags into your REDCap project.

Action Tag Description
@REGEXP_VALIDATE a regex that will enforce specialize validatation for fields in your project

Technical Notes

Common Troubleshooting Issues

  • Adding the project ID to REDCap directory before action tag can be used
  • Creating regex for action tag

Module Setup Notes

  1. Does not require configuration from the external modules page of the project.
  2. Requires action tags which can be found in the documentation page for the project.

Updated on August 7, 2025