Subject (required) SuggestionComplaint
Do you wish your message to be anonimous? YesNo
Your Name (required)
Your Email (required)
Your Message (required)
Check here if you read and accept the GDPR
') $('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() });