This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This will allow you to restrict forms by naming them with: | |
// Form-name-here [ONLY: Organization-name] | |
$(window).load(function() { | |
const formRegex = /\[ONLY: (\w+)]/; | |
function sanitizeForm(formName, orgs) { | |
result = { | |
formName: formName.replace(formRegex, ''), | |
allowed: false | |
} |