$defaultCountryId = json_encode($defaultCountryId); $script = " // jshint mootools:true window.addEvent('domready', function () { $(document.body).getElements('fieldset').addEvent('click', function () { if (!this.hasClass('focused')) { $(document.body).getElements('fieldset').removeClass('focused'); this.addClass('focused'); this.getElement('input').focus(); } }); $(document.body).getElements('input,select').addEvent('focus', function () { $(document.body).getElements('fieldset').removeClass('focused'); this.getParent('fieldset').addClass('focused'); }); $('UserFirstName').addEvent('change', function () { var usernameValue = this.get('value'); $('username').set('text', usernameValue); }); $('SchoolCountryId').addEvent('change', function () { if (this.getSelected()[0].get('value') == $defaultCountryId) { $('OrderInvalidCountryByIp').hide(); } else { $('OrderInvalidCountryByIp').show(); } }); $('SchoolVatNumberVisible').addEvent('click', function () { if (this.checked) { $('SchoolVatNumber').show(); } else { $('SchoolVatNumber').hide(); } }); if ($('SchoolVatNumberVisible').checked) { $('SchoolVatNumber').show(); } else { $('SchoolVatNumber').hide(); } var errorElements = $$('.form-error'); if (errorElements.length) { var firstElement = errorElements.shift(); firstElement.focus(); errorElements.each(function(el) { el.getParent('fieldset').addClass('fieldset-error'); }); } else { $('OrderNumberOfAccounts').focus(); } }); "; $this->Html->scriptBlock($script, ['inline' => false]);

Try Prowise Learn for free

Number of students

Hi there! How many students are attending your school?

Information administrator

With whom do we have the pleasure?

Information school/organisation

Almost there; what is your school- or institution's address?

Agreements

Fantastic , you're almost finished with your registration!

After confirming this order, your trial is activated and you will receive an email with start-up instructions. We hope you will enjoy working with our application!

* marks a required field