Help Desk Software & Beyond
May 21, 2012, 11:48:14 PM *
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: 'Externally viewable' warning message  (Read 1970 times)
Grossbloke
Newbie
*

Karma: 0
Posts: 10


View Profile
« on: November 26, 2007, 05:30:46 AM »

Hi,
I have no idea if this has been asked before, but i have searched the forums and could not seem to find an answer.

Basically we are playing about with TTX with view of using it as a ticketing system, however are concerned that if the 'internal' tick box is unchecked then the customer can see the notes, and in some cases this could be bad as we don't want them knowing our internal secrets.
I have managed to enforce the 'create new ticket' tick box by creating a link to the new ticket for which auto completes certain data and adding the variable '&internal=1' to the link for submitting a ticket. I will also be using the code changes mentioned in https://forum.unitedwebcoders.com/index.php/topic,300.msg1262.html#msg1262 to enforce the note entry tick box, however is there a way to get a pop up warning of some form to trigger if the box is not ticked?

Thanks in advance, any help you can give me would be greatly appreciated.
Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #1 on: November 26, 2007, 08:00:43 AM »

If you absolutely want everything to be internal 100% of the time, why not change the checkbox into a hidden field where the possibility to uncheck it could never exist?
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
Grossbloke
Newbie
*

Karma: 0
Posts: 10


View Profile
« Reply #2 on: November 26, 2007, 08:43:35 AM »

Hi,

Thanks for the quick response. It wasn't so much that we want it permanently internal but we want it to 'default' to internal and then pop up a warning, or display a warning, if we have submitted a note which is 'customer facing' so that we know that note will be viewable by the customers. Sort of like an 'are you sure you really want the customer to read this note' warning.

Hope that makes sense. 
Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #3 on: November 26, 2007, 12:01:44 PM »

You'd need some Javascript....

to the top of ticket.html, add this new function:

Quote
<script language="JavaScript"><!--
function confirmInt() {
    if (!document.forms['newticket'].internal.checked){
   return confirm("This message will be viewable by the customer.\n\nClick Cancel to go back.\nClick Ok to submit message.\n");
    }
}
//-->
</script>


then find the button for adding messages and add the part in red:

Quote
<input type="submit" value="[%Add message%]" onclick="confirmInt()">



I have not tested this function.
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
Grossbloke
Newbie
*

Karma: 0
Posts: 10


View Profile
« Reply #4 on: November 26, 2007, 12:22:17 PM »

Hi sparky672,

Thanks very much for this, really appreciated, its perfect for what we want.
There is a slight oddity now though where it posts the note whether you press ok or cancel and my javascript is useless. Is there anything that can be done about that?
Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #5 on: November 26, 2007, 12:25:43 PM »


<input type="submit" value="[%Add message%]" onclick="return confirmInt()">

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
Grossbloke
Newbie
*

Karma: 0
Posts: 10


View Profile
« Reply #6 on: November 26, 2007, 12:32:24 PM »

Spot on!

Thanks very much, thats exactly what we wanted!

Once again, your help is really appreciated, keep up the good work!
Logged
Sparky
Moderator
Hero Member
*****

Karma: 83
Posts: 2,228


stop pushing all those buttons


View Profile
« Reply #7 on: November 26, 2007, 12:35:24 PM »

Good - glad it worked...   Cheesy
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.023 seconds with 19 queries.