Keeping in touch

    Please choose from the following interests

    Please select your preferred method of contact (required)

    Communication Permission

    NIHR Leeds BRC would like to use the information above to keep in touch with you. Your information will not be used for any other purpose other than what you have stated.

    You can change your mind at any time by clicking the unsubscribe link in any email you receive from us or contacting Gwyn Cracknell on G.T.Cracknell@leeds.ac.uk. We will manage your information in line with Data Protection legislation. By clicking the Subscribe button below you agree to these terms.

    window.addEventListener('DOMContentLoaded', function(event) {
    (function($){
    document.addEventListener('wpcf7mailsent', function(){
    $('.registerinterestform').hide();
    });
    var checkMethod = function(){
    $('.contactmethod-inputs').hide();
    $('#contactmethods input:checkbox').each(function(){
    if ( $(this).is(':checked') ) {
    $('#contactmethod_'+$(this).val()).show();
    }
    });
    };
    $('#contactmethods input:checkbox').on('click', checkMethod);
    $('#userinterests input:checkbox').first().on('click', function(e){
    if ( $(this).is(':checked') ) {
    $('#contactmethods input:checkbox').first().prop('checked', true);
    checkMethod();
    }
    });
    $('#contactmethods input:checkbox').first().on('click', function(e){
    if ( ! $(this).is(':checked') ) {
    $('#userinterests input:checkbox').first().prop('checked', false);
    }
    });
    checkMethod();
    $('.registerinterestform input[type=submit]').on('click', function(e){
    var hasErrors = false;
    $('#contactmethods input:checkbox').each(function(){
    if ( $(this).is(':checked') ) {
    $('#contactmethod_'+$(this).val()+' input').each( function(){
    if ( $.trim($(this).val()) === '' ) {
    $(this).addClass('error');
    hasErrors = true;
    }
    });
    }
    });
    if ( hasErrors ) {
    $('.wpcf7-response-output').addClass('wpcf7-validation-errors').text('Please ensure all details for methods of contact are completed').show();
    e.preventDefault();
    e.stopPropagation();
    return false;
    }
    });
    $('.contactmethod-inputs input').on('focus', function(){
    $(this).removeClass('error');
    });
    })(jQuery);
    });