最近搜索


没有最近搜索

Grace Mun's Avatar

Grace Mun

已加入2022年7月13日

·

最后活动2023年1月13日

关注

0

关注者

0

活动总数

7

投票

1

订阅

4

活动概览

的最新活动 Grace Mun

Grace Mun 进行了评论,

社区评论 Q&A - Tickets and email

Hey Pulkit Pandey, would this code block anonymous users from submitting a request in general? 

We still want anonymous users to be able to submit a request, there's just a specific form we want to hide from them. 

I've set up the code below and it seems to work actually:

//To hide a form from anonymous users
jQuery( document ).ready(function() {
if (HelpCenter.user.role=="anonymous"){
var tagsToRemove = ['insert form ID'];  
function removeTagsWeDontWant() {
$('.nesty-panel').on('DOMNodeInserted', function(e){
for(var i in tagsToRemove) {
$('li#' + tagsToRemove[i]).remove();
}
});
};
removeTagsWeDontWant();
}
})

查看评论 · 已于 2023年1月13日 发布 · Grace Mun

0

关注者

1

投票

0

评论


Grace Mun 创建了一个帖子,

帖子 Q&A - Tickets and email

Is there a way to restrict a specific ticket form from being visible to anonymous users i.e. Help Center visitors who are not signed in? We have different personas accessing our public Help Center and ideally, this specific form is not available from the drop-down field on the new request page unless they're signed in. 

I've seen the other Community posts where you can restrict form viewing permissions based on the organization name or user tags, and how you can restrict the "submit a request" button entirely, but unfortunately, none of these existing posts solve this specific use case. 

已于 2023年1月09日 发布 · Grace Mun

1

关注者

6

投票

9

评论