Take the next step in your career with a program guide!
").pop(); input = label.nextSibling.nextSibling; // input.setAttribute('placeholder', name); } for (i = 0; i < inputs.length; i++) { input = document.getElementsByClassName('mktoField')[i]; input.addEventListener('focusin', function() { boo = this.previousSibling.previousSibling; // boo.style.opacity = '1'; placeholder = this.setAttribute('placeholder', ''); //this.setAttribute('style', 'padding: 12px 6px 0 6px !important'); }); input.addEventListener('focusout', function() { boo = this.previousSibling.previousSibling; placeholder = this.setAttribute('placeholder', boo.innerHTML.split("
").pop()); if(this.value == "") { // boo.style.opacity = '0'; this.setAttribute('style', 'padding: 2px 6px 0 6px !important'); } else { // boo.style.opacity = '1'; } }); } // console.log(inputs[0].value); btnSubmit = document.querySelector('button[type="submit"]'); btnSubmit.addEventListener('click', function() { for (i = 0; i < inputs.length; i++) { inputVal = document.getElementsByClassName('mktoField')[i].value; console.log(inputVal); inputValues.push(inputVal); } // console.log(inputValues); if (inputValues.includes('')) { console.log('one of the values is empty'); } else { btnSubmit.innerHTML = 'Wait...'; alert('booooom'); document.querySelector('button[type="button"]:nth-child(1)').style.display = 'none !important'; } }); legends = document.querySelectorAll('legend'); legends.forEach(element => { let currText = element.innerHTML.replace('0', ''); steps = document.querySelectorAll('fieldset'); // element.innerHTML = currText + ' of ' + steps.length; // element.setAttribute('style', 'display: block !important'); }); lala = document.querySelectorAll('.mktoField'); lala.forEach(element => { element.addEventListener('focusin', function() { // console.log('focusIn'); // element.setAttribute('style', 'padding: 12px 6px 0 6px !important'); }); element.addEventListener('focusout', function() { // console.log('focusOut'); // element.setAttribute('style', 'padding: 2px 6px 0 6px !important'); }); }); // Group Dropdowns arrayify(formEl.querySelectorAll('SELECT')) .forEach(function(selectEl) { var currentOg; arrayify(selectEl.querySelectorAll('OPTION')) .forEach(function(o, idx) { if (o.value == '[OPTGROUP]') { currentOg = document.createElement('OPTGROUP'); currentOg.label = o.textContent; selectEl.appendChild(currentOg); selectEl.removeChild(o); } else { if (currentOg) currentOg.appendChild(o); } }); });/* $("#mktoRadio_107551_0").on('click', function(){ // userConfig.requiredFields.push({name:'Program_of_Interest__c',message:'This field is required.'}); //userConfig.requiredFields.splice(1, 0, {name:'Program_of_Interest__c',message:'This field is required.'}); // logObject(); userConfig.requiredFields .map(function(fieldDesc) { fieldDesc.label = formEl.querySelector("[for='"+ fieldDesc.name + "']"); fieldDesc.refEl = formEl.querySelector("[name='" + fieldDesc.name + "']"); return fieldDesc; }) .forEach(function(fieldDesc){ fieldDesc.label.parentNode.classList.add("mktoRequiredField"); }); }); */ function logObject(){ var res = Object.keys( userConfig.requiredFields).reduce((acc, elem)=>{ acc[elem] = userConfig.requiredFields[elem].name; return acc; },{}); console.log(res); } // Add hidden fields form.addHiddenFields({ Landing_Page_URL__c : document.location} ); // gtag form btnNext = document.querySelector('button[data-dir="next"]'); btnPrev = document.querySelector('button[data-dir="prev"]'); btnSub = document.querySelector('button[type="submit"]'); tokenize(); btnNext.addEventListener('click', function() { gtag('event', "click", { 'send_to' : 'UA-197281205-1', 'event_category': "ST6", 'event_label': pgName + "form_next", }); }); btnPrev.addEventListener('click', function() { gtag('event', "click", { 'send_to' : 'UA-197281205-1', 'event_category': "ST6", 'event_label': pgName + "form_back" }); }); btnSub.addEventListener('click', function() { gtag('event', "click", { 'send_to' : 'UA-197281205-1', 'event_category': "ST6", 'event_label': pgName + "form_submit" }); }); });
By completing this form and clicking the button below, I consent to receiving calls, text messages and/or emails from BISK, its client institutions, and their representatives regarding educational services and programs. I understand calls and texts may be directed to the number I provide using automatic dialing technology. I understand that this consent is not required to purchase goods or services. If you would like more information relating to how we may use your data, please review our privacy policy.