Hello!
We had a need to show only one ticket form to non-logged in users, while allowing logged in users to see all ticket forms. With an assist from Support and from this post, here's how we did it:
1. In the Help Center admin panel, edit your theme
2. Go to the JS tab, and add this near the top, here you're telling it to remove specific ticket fields from the drop down. Instead of 123, put in the actual ID of your ticket form. Put in everything but the ones you want to show for anonymous users.
if (HelpCenter.user.role=="anonymous")
{
$('#request_issue_type_selectoption[value="123"]').remove();
$('#request_issue_type_selectoption[value="456"]').remove();
$('#request_issue_type_selectoption[value="789"]').remove();
$('.nesty-panel').on('DOMNodeInserted', function(e) {
$(this).children('ul').children().remove('#123');
$(this).children('ul').children().remove('#456');
$(this).children('ul').children().remove('#789');
});
}
That's it!
One note though is this doesn't stop anonymous users from submitting via the web widget, still trying to figure that out.
Brandon