최근 검색


최근 검색 없음

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

댓글