HelpSpot Help Desk Software | HelpSpot Blog | HelpSpot Support

Passing in Category via request URL


#1

I’ve read the KB article at http://www.userscape.com/helpdesk/index.php?pg=kb.page&id=39 but I’ve tried passing in the category (as variable xCategory, Category, and sCategory) and the Category field on the form is never filled in to the value I entered. For example:

http://my-helpspot-domain-here/index.php?pg=request&sCategory=IT+Support+Request

Using that URL the Category field still defaults to blank. I’ve done the same with the other two variable name variations I mentioned above, with no success. Is this possible? The code in the request.tpl.php template seems to indicate that this is possible where it says (line 110 of the default request template):

<?php if($this->request_xCategory == $category['xCategory']) echo 'selected' ?>>

Am I missing something? Thanks!


#2

Hi David,

It sounds like you’re on the right track. A sample URL would be:

http://my-helpspot-domain-here/index.php?pg=request&xCategory=2

The thing to note is that you’re using the correct category ID. You can find each categories ID in the list of categories in Admin->Categories.