Recent searches
No recent searches

Angel Vargas
Joined Jan 29, 2025
·
Last activity Jan 29, 2025
Following
0
Followers
0
Total activity
2
Votes
0
Subscription
1
ACTIVITY OVERVIEW
BADGES
ARTICLES
POSTS
COMMUNITY COMMENTS
ARTICLE COMMENTS
ACTIVITY OVERVIEW
Latest activity by Angel Vargas
Angel Vargas commented,
Guys, the code doesn't work in my site, The form can be displayed, but cannot be used.
$(document).ready(function() {
var formID = 37699203719699; // Change this to the form ID you wish to remove
var userOrgs = window.HelpCenter.user.organizations;
var userOrgNames = userOrgs.map(org => org.name);
if (!(userOrgNames.includes("PayJoy")) ) { // Specify the organization name here
// If the user does not belong to the organization specified, remove the form option from the dropdown
$('#request_issue_type_select option[value="' + formID + '"]').remove();
$('.nesty-panel').on('DOMNodeInserted', function(e) {
$(this).children('ul').children().remove('#' + formID);
});
}
});
});
Can you help me with this problem?
View comment · Posted Jan 29, 2025 · Angel Vargas
0
Followers
0
Votes
0
Comments