I want to start by saying I am not a coder but I am trying to edit code in Zendesk to auto fill and hide the required subject and description fields. Here is the code I put in the script.js at the top:
$(document).ready(function() {
$('#request_subject').val("vaccine request");
$('.request_subject').hide();
$('#request_description').val("vaccine");
$('.request_description').hide();
$('.form-field label:contains("Attachments")').hide();
$('#upload-dropzone').hide();
});
The request subject auto fills on the form but the request description will not populate. Once the form is submitted it returns an error that description cannot be blank. If anyone has any suggestions I would be most grateful. We are trying to launch this today to start pushing out vaccines next week but I cannot get this to work.
I'm sure I've made a simple mistake because I don't know enough about coding but after spending hours trying to decipher the problem I am taking a chance that someone on here can help. Thank you in advance for any assistance.