최근 검색
최근 검색 없음

Ryan Crane
가입한 날짜: 2021년 4월 15일
·
마지막 활동: 2022년 2월 14일
팔로잉
0
팔로워
0
총 활동 수
2
투표 수
0
플랜 수
0
활동 개요
배지
문서
게시물
커뮤니티 댓글
문서 댓글
활동 개요
님의 최근 활동 Ryan Crane
Ryan Crane님이 에 댓글을 입력함
Hey Amie,
I have given your code variation a go and updated the script.js however after publishing the code and reviewing the form both the subject and description fields are still visible.
Here is the code for reference, which looks all good.
Thanks for you help so far :)
Ryan
댓글 보기 · 2020년 9월 03일에 게시됨 · Ryan Crane
0
팔로워
0
투표 수
0
댓글
Ryan Crane님이 에 게시물을 만듦
There are a few of our request forms where the default sytem fields Subject and Description are not required and I would ideally like to hide them.
From what I have read on other similar posts that the fields can be auto completed and hidden using Javascript or jQuery.
Following the example of the article https://support.zendesk.com/hc/en-us/articles/115002860148-Disabling-the-subject-and-description-fields-on-the-new-request-form-in-Help-Center- this is the code I have tried to use but after publishing the changesthe fields are still visble.
var ticketForm = location.search.split('ticket_form_id=')[1];
if(ticketForm == 360000116238) {
$('.form-field.request_subject').hide(); // Hide subject
$('.form-field.request_description').hide(); // Hide description
$('#request_subject').val('test subject'); // autofill subject
$('#request_description').val('test description'); // autofill description
}
Can someone point me in the right direction to get this to work
Thanks
2020년 9월 02일에 게시됨 · Ryan Crane
0
팔로워
10
투표 수
13
댓글