Suggestions and Complaints

Suggestions and Complaints






    ')
    $('input[name=your-anonimous]').on('change', function() {
    let val = $('input[name=your-anonimous]:checked').val()
    let gdpr = $('input[name=your-consent]')
    if(val == 'Yes'){
    $('.boxCont').hide()
    $('input[name=your-name]').val('empty')
    $('input[name=your-email]').val('empty@mail.pt')
    if (gdpr.prop('checked', false)){ gdpr.click() }
    }
    if(val == 'No'){
    $('.boxCont').show()
    $('.inputHide').val('')
    if (gdpr.prop('checked', true)){ gdpr.click() }
    }
    });
    $(".wpcf7").on('wpcf7:mailsent', function(event){
    $('.boxCont').hide()
    });