질문
헬프 센터의 문의 등록 양식에서 제목 및 설명 필드를 숨기거나 제거하려면 어떻게 해야 하나요?
답변
요청 양식에서 제목을 숨길 수 있습니다. 하지만 기본적으로 설명 필드는 숨길 수 없습니다.
요청 양식에서 제목 필드를 숨기려면 다음과 같이 하세요.
-
관리 센터 > 개체 및 규칙 > 티켓 > 필드로 이동합니다.
- 제목 필드를 엽니다.
-
권한 아래에서 고객이 볼 수 있음을 선택합니다.
- 저장을 선택합니다.
고객은 요청 양식에서 제목 필드를 볼 수 없지만 고객 포털에서는 볼 수 있습니다.
고객이 볼 수 있음 권한을 사용하면 티켓의 설명이 티켓의 제목이 됩니다.
댓글 238개
Janet Fuessl
I need to create several forms for our internal staff to complete. The forms are different from each other, and I want to customize them by:
Is there a way to remove these default elements and create my own custom fields that better suit my forms?
0
Cesar Gatica
Seems like since the implementation of Copenhagen 4.2.7 (or earlier) old methods of hiding and auto-populating Subject line and Description field no longer work.
Please, if anyone has any advice on how to hide and auto-populate the Subject line and description field of a specific form, I'd greatly appreciate it.
0
Bellavance,François
It seems that since latest Zendesk update templating v4 that was released last July, this needs to be done in new_request_page.hbs instead of script.js. I have a support ticket on this.
0
Bruce Chang On
Thank you Jan,
I am following that post. I hope there is a solution
0
Bellavance,François
Hi, everything was working and then we changed theme. I copied the code from script.js and the one from document_head.hbs
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
Is it supposed to work with all the themes? I don't understand why it was working before and not anymore this time.
0
Jan Slansky
Please check this post related to the same issue but on latest version of templates. https://support.zendesk.com/hc/en-us/community/posts/8042302464410-Copenhagen-v4-modifications-and-JS-updates-of-request-forms#community_comment_8425690267162
1
Bruce Chang On
Hi All,
very new to Zendesk and not very strong at coding. I'm basically looking for a way to hide the Subject, Attachment and Description fields on a specific form.
Using Copenhagen Theme version 4.1.0
Templating API v4
I've landed on this but not sure exactly where I should insert the code. Can anyone give me some directions please?
var ticketForm = location.search.split('ticket_form_id=')[1];
if(ticketForm == 28674919414929) {
$('.form-field.request_subject').hide(); // Hide subject
$('.form-field.request_description').hide(); // Hide description
$('.form-field.string.optional.request_cc_emails').hide();// Hide CCs
$('.form-field label:contains("Attachments")').hide(); // Hide label for Attachments
$('#upload-dropzone').hide(); // Hide upload box for Attachments
$('#request_subject').val('New EAP Appointment Request'); // autofill subject
$('#request_description').val('See details in the fields to the left'); // autofill description
}
I've basically added it at the bottom of my Script.js file
0
qiang huang
How to do it in Templating API v4
0
Jan Slansky
Anybody successfully modified this for Copenhagen v4?
0
Rebecca Schnitzer
Hi all - I was able to successfully autofill and hide my description field, but when some end users try to submit a ticket, the “Description: cannot be blank” error" flashes and does not let them submit the ticket. This is only happening to some people, not all. Has anyone dealt with this before? Is there an error in the code or is it something with the end user? Thanks in advance!
0
댓글을 남기려면 로그인하세요.