最近の検索
最近の検索はありません

Grace Mun
参加日2022年7月13日
·
前回のアクティビティ2023年1月13日
フォロー中
0
フォロワー
0
合計アクティビティ
7
投票
1
受信登録
4
アクティビティの概要
バッジ
記事
投稿
コミュニティへのコメント
記事へのコメント
アクティビティの概要
さんの最近のアクティビティ Grace Mun
Grace Munさんがコメントを作成しました:
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さんが投稿を作成しました:
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
コメント