最近搜索
没有最近搜索

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
评论