Recherches récentes
Pas de recherche récente

Grace Mun
Adhésion le 13 juil. 2022
·
Dernière activité le 13 janv. 2023
Suivis
0
Abonnés
0
Activité totale
7
vote
1
Abonnements
4
APERÇU DES ACTIVITÉS
BADGES
ARTICLES
PUBLICATIONS
COMMENTAIRES DE LA COMMUNAUTÉ
COMMENTAIRES SUR L’ARTICLE
APERÇU DES ACTIVITÉS
Dernière activité effectuée par Grace Mun
Grace Mun a ajouté un commentaire,
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();
}
})
Afficher le commentaire · Publication le 13 janv. 2023 · Grace Mun
0
Abonnés
1
vote
0
Commentaire
Grace Mun a créé une publication,
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.
Publication le 09 janv. 2023 · Grace Mun
1
Abonné
6
Votes
9
Commentaires