var wmform_204547 = (function() { var scope = {validateAndReturnMessage: null, currentStep: null,je_vraag: null,verstuurd: null}; with(scope) { je_vraag = (function() { var scope = {vul_hier_je_persoonlijke_gegevens_in: null,personeelsnummer: null,naam: null,emailadres: null,ondersteuning: null,toelichting_op_kd_is_niet_goed_bijgewerkt: null,toelichting_op_mijn_functie_klopt_niet: null,toelichting_op_inhoud_kwaliteitsdashboard: null,omschrijving: null,versturen: null, checkConditions: null, visible: true, validate: null,required_validator: null}; with(scope) { vul_hier_je_persoonlijke_gegevens_in = (function() { var scope = {value: '', validate: null, errors: {}, visible: true, checkConditions: null, validated: false, condition: true}; with(scope) { originalvalue = ''; validate = function() { this.errors = {}; return this.errors; }; checkConditions = function() { this.visible = true; }; } return scope; })(); personeelsnummer = (function() { var scope = {value: '', validate: null, errors: {}, visible: true, checkConditions: null, validated: false, condition: true}; with(scope) { originalvalue = ''; validate = function() { this.errors = {}; required_validator( {"fragment":"personeelsnummer"}, {"MISSING":"Dit veld is verplicht"} ); return this.errors; }; checkConditions = function() { this.visible = true; }; } return scope; })(); naam = (function() { var scope = {value: '', validate: null, errors: {}, visible: true, checkConditions: null, validated: false, condition: true}; with(scope) { originalvalue = ''; validate = function() { this.errors = {}; required_validator( {"fragment":"naam"}, {"MISSING":"Dit veld is verplicht"} ); return this.errors; }; checkConditions = function() { this.visible = true; }; } return scope; })(); emailadres = (function() { var scope = {value: '', validate: null, errors: {}, visible: true, checkConditions: null, validated: false, condition: true}; with(scope) { originalvalue = ''; validate = function() { this.errors = {}; required_validator( {"fragment":"emailadres"}, {"MISSING":"Dit veld is verplicht"} ); return this.errors; }; checkConditions = function() { this.visible = true; }; } return scope; })(); ondersteuning = (function() { var scope = {value: '', validate: null, errors: {}, visible: true, checkConditions: null, validated: false, condition: true}; with(scope) { originalvalue = ''; validate = function() { this.errors = {}; required_validator( {"fragment":"ondersteuning"}, {"MISSING":"Dit veld is verplicht"} ); return this.errors; }; checkConditions = function() { this.visible = true; }; } return scope; })(); toelichting_op_kd_is_niet_goed_bijgewerkt = (function() { var scope = {value: '', validate: null, errors: {}, visible: true, checkConditions: null, validated: false, condition: true}; with(scope) { originalvalue = ''; validate = function() { this.errors = {}; return this.errors; }; checkConditions = function() { var oldVisible = visible; this.visible = ((je_vraag.ondersteuning.condition && (!(je_vraag.ondersteuning.value instanceof Array) && je_vraag.ondersteuning.value == 'Mijn kwaliteitsdashboard is niet goed bijgewerkt' || (je_vraag.ondersteuning.value instanceof Array) && je_vraag.ondersteuning.value.indexOf('Mijn kwaliteitsdashboard is niet goed bijgewerkt') != -1))); if (oldVisible != visible) { if (!visible) { this.originalvalue = value; value = null; } else { value = this.originalvalue; } } return (oldVisible != visible); }; } return scope; })(); toelichting_op_mijn_functie_klopt_niet = (function() { var scope = {value: '', validate: null, errors: {}, visible: true, checkConditions: null, validated: false, condition: true}; with(scope) { originalvalue = ''; validate = function() { this.errors = {}; return this.errors; }; checkConditions = function() { var oldVisible = visible; this.visible = ((je_vraag.ondersteuning.condition && (!(je_vraag.ondersteuning.value instanceof Array) && je_vraag.ondersteuning.value == 'Mijn functie in SKORO klopt niet!' || (je_vraag.ondersteuning.value instanceof Array) && je_vraag.ondersteuning.value.indexOf('Mijn functie in SKORO klopt niet!') != -1))); if (oldVisible != visible) { if (!visible) { this.originalvalue = value; value = null; } else { value = this.originalvalue; } } return (oldVisible != visible); }; } return scope; })(); toelichting_op_inhoud_kwaliteitsdashboard = (function() { var scope = {value: '', validate: null, errors: {}, visible: true, checkConditions: null, validated: false, condition: true}; with(scope) { originalvalue = ''; validate = function() { this.errors = {}; return this.errors; }; checkConditions = function() { var oldVisible = visible; this.visible = ((je_vraag.ondersteuning.condition && (!(je_vraag.ondersteuning.value instanceof Array) && je_vraag.ondersteuning.value == 'De inhoud van mijn kwaliteitsdashboard klopt niet' || (je_vraag.ondersteuning.value instanceof Array) && je_vraag.ondersteuning.value.indexOf('De inhoud van mijn kwaliteitsdashboard klopt niet') != -1))); if (oldVisible != visible) { if (!visible) { this.originalvalue = value; value = null; } else { value = this.originalvalue; } } return (oldVisible != visible); }; } return scope; })(); omschrijving = (function() { var scope = {value: '', validate: null, errors: {}, visible: true, checkConditions: null, validated: false, condition: true}; with(scope) { originalvalue = ''; validate = function() { this.errors = {}; required_validator( {"fragment":"omschrijving"}, {"MISSING":"Dit veld is verplicht"} ); return this.errors; }; checkConditions = function() { this.visible = true; }; } return scope; })(); versturen = (function() { var scope = {value: '', validate: null, errors: {}, visible: true, checkConditions: null, validated: false, condition: true}; with(scope) { originalvalue = ''; validate = function() { this.errors = {}; return this.errors; }; checkConditions = function() { this.visible = true; }; } return scope; })(); required_validator = function(parameters, languageLabels) { return ag_204547.required_validator(this, parameters, languageLabels); } } return scope; })(); currentStep = function() { return je_vraag; }; validateAndReturnMessage = function(inputName,value) { var fragmentObj = getObject(currentStep(),inputName); if (fragmentObj != null) { fragmentObj.value = value; return fragmentObj.validate(); } }; getObject = function(obj, expression) { if (typeof obj != 'undefined' && obj != null) { var index = expression.indexOf('.'); if (index == -1) { return obj[expression]; } else { return getObject(obj[expression.substring(0,index)],expression.substring(index+1, expression.length)); } } else { return null; } } } return scope; })(); if (typeof WebmanagerFormStateRegistry != 'undefined') { if (typeof WebmanagerFormStateRegistry['wmform_204547'] == 'undefined' || !WebmanagerFormStateRegistry['wmform_204547']) { WebmanagerFormStateRegistry['wmform_204547'] = wmform_204547; }; }; ag_204547 = new Object(); ag_204547.required_validator = function(scope,parameters, languageLabels) { if (scope[parameters.fragment].value == undefined || scope[parameters.fragment].value === "") { scope[parameters.fragment].errors["MISSING"] = languageLabels["MISSING"]; } }