Help Desk Software & Beyond
May 22, 2012, 12:50:07 AM *
Welcome, Guest. Please login or register.
To post messages you need to register. We apologize for inconvenience, but this is to prevent spam.
Registration is instant (no email verification) and we do not ask for any personal information.

Login with username, password and session length
News: Welcome to Help Desk Software forum!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [MOD] Replace a pull-down with a hidden default value  (Read 1675 times)
mattjones124
Newbie
*

Karma: 0
Posts: 5


View Profile
« on: April 17, 2008, 11:56:43 AM »

I removed the operator choice macro, so you cannot see it, but the default right now is No Operator. How do I configure the default operator to be All Operators?

I know the code is something like this.

 <input type="hidden" name="something" value="something">

But I cannot figure out what I need to write.

Thanks for the help.


edited:  thread title
« Last Edit: April 17, 2008, 01:57:01 PM by sparky672 » Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #1 on: April 17, 2008, 12:06:07 PM »

I can't find it right now but I can tell you how to figure it out.

Put the macro back in your template (just for now).
Pull up your New Ticket screen.
In your browser, view HTML source code.

The "name=" you need will be the same "name=" for the Operator pulldown.  I think it's "oper" but you should verify.

The "value=" you need will be the same "value=" that lines up with your desired default operator in the Operator pulldown.


Remove the macro and replace it with the Hidden field.
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
mattjones124
Newbie
*

Karma: 0
Posts: 5


View Profile
« Reply #2 on: April 17, 2008, 01:48:12 PM »

Can you do me a favour and tell me what the macro is?  I deleted it, but the backup I made, I forgot to save.  Bonehead move on my part.
Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #3 on: April 17, 2008, 01:53:56 PM »

(%OPERSELSTD%) is the macro.

But to look that up I saved you a step...

Quote
<input type="hidden" name="oper" value="operator_login_name">

Where "operator_login_name" equals the short name or the login name of your desired default operator.
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #4 on: April 17, 2008, 01:55:17 PM »

For everyone:

The format and procedure is the same for any pull-down that needs to be removed and replaced with a default value.
Logged

Did you update the paths in ttxcfg.cgi after moving TTX to your new location?   Undecided
To those seeking help.... please report back when you figure it out.  Cheesy
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1 RC3 | SMF © 2001-2006, Lewis Media Valid XHTML 1.0! Valid CSS!
Page created in 0.021 seconds with 19 queries.