Recent searches
No recent searches

Brandon Jones
Joined May 20, 2022
·
Last activity May 24, 2022
Following
0
Followers
0
Total activity
7
Votes
0
Subscriptions
3
ACTIVITY OVERVIEW
BADGES
ARTICLES
POSTS
COMMUNITY COMMENTS
ARTICLE COMMENTS
ACTIVITY OVERVIEW
Latest activity by Brandon Jones
Brandon Jones commented,
So what if we want to make it so that the web widget does not display certain forms unless someone is logged into our site and their site login username (email address) matches their Zendesk login username (email address)?
Example, we have our HC code edited so that only logged in users with certain user tags can see certain forms. Is there a way to make the classic web widget mirror this?
View comment · Posted May 24, 2022 · Brandon Jones
0
Followers
1
Vote
0
Comments
Brandon Jones commented,
Damon Maranya thanks very much! wasn't sure what to do with that but I'll follow your lead. I tried what Kay posted but using the preview that didn't seem to work.
View comment · Posted May 20, 2022 · Brandon Jones
0
Followers
0
Votes
0
Comments
Brandon Jones commented,
Hi I am completely lost here. I have the following code, trying to hide it from all users not a part of the org but it doesn't seem to work when I use the preview function. Can someone help point out what I'm doing wrong here? read through a lot of different help topics but still can't get it to work. I even have the code at the top of my script.js file.
// Restrict Coach only forms
document.addEventListener('DOMContentLoaded',function(){
var i = 0;
var checkExist = setInterval(function() {
i++;
if ($("a.nesty-input").length){
clearInterval(checkExist);
$("a.nesty-input").each(function() {
$(this).bind( "click", function() {
for (var c in HelpCenter.user.organizations) {
if (HelpCenter.user.organizations[c].name.substring(0,8) === "Sounding Board Labs, Inc."){
$("#5580887005723").show();
}
else {
$("#5580887005723").hide();
}
//reserve space for additional organizations
}
});
});
}
if (i > 10){
clearInterval(checkExist);
}
}, 100);
View comment · Posted May 20, 2022 · Brandon Jones
0
Followers
0
Votes
0
Comments
Brandon Jones commented,
Hoping this is a quick question. How do you restrict anonymous users and users not in an org from viewing specific forms without restricting them from still being able to submit a request? I have four forms I want to restrict and have this as my code but not sure how to stop anon users from viewing.
document.addEventListener('DOMContentLoaded', function() {
var i = 0;
var checkExist = setInterval(function() {
i++;
if ($("a.nesty-input").length){
clearInterval(checkExist);
$("a.nesty-input").each(function() {
$(this).bind( "click", function() {
for (var c in HelpCenter.user.organizations)
{
if (HelpCenter.user.organizations[c].name !== "Test Org"){
$("#Form_ID").hide();
$("#Form_ID").hide();
$("#Form_ID").hide();
$("#Form_ID").hide();
}
}
});
});
}
if (i > 10){
clearInterval(checkExist);
}
}, 100);
View comment · Posted May 20, 2022 · Brandon Jones
0
Followers
0
Votes
0
Comments