fairm010 Posted October 14, 2014 Posted October 14, 2014 Hi @nickbro Back in v9 I asked how to put pre filled text into a new helpdesk ticket and you answered here: http://www.edugeek.net/forums/home-access-plus/130526-pre-filled-text-helpdesk.html You said that in v10 this is possible too. I have updated to v10.1 and would like to know how I do this? Ta
nickbro Posted October 14, 2014 Posted October 14, 2014 You will still need to follow my instructions on that thread.
fairm010 Posted October 15, 2014 Author Posted October 15, 2014 Hi Nick, the string $("#ticket-note").val(""); doesnt exist in the default.aspx.
nickbro Posted October 15, 2014 Posted October 15, 2014 ~/scripts/hap.helpdesk.js $("#ticket-note, #ticket-AwareI").val(""); to $("#ticket-note").val("Some default value"); $(#ticket-AwareI").val(""); $("#newticket-note").val(""); to $("#newticket-note").val("Some default value");
fairm010 Posted October 15, 2014 Author Posted October 15, 2014 Thanks Nick, That puts "Some default value" into the notes box on an existing ticket but I need to have prefilled text when a user goes to create a ticket.
nickbro Posted October 15, 2014 Posted October 15, 2014 You can do " + navigator.platform + " which will inject the os Win32 etc. JavaScript Window Navigator How to find the operating system version using JavaScript - Stack Overflow
fairm010 Posted October 15, 2014 Author Posted October 15, 2014 Hi Nick, Sorry, I haven't made myself clear. I just need some pre filled text such as: "Press File Ticket ONCE. Please make sure you provide as much detail as you can, including what measures you have taken" Your above edit worked but not on a new ticket. Once I had created a test ticket the pre filled text was then in the notes box.
nickbro Posted October 15, 2014 Posted October 15, 2014 O ok for these function updateTicket() { function assignTicket() { function fileTicket() { add this below $("button, input").prop("disabled", true);[code] Then [code]function Update() { add this below $("button, input").prop("disabled", false); This will disable the button once it's clicked once straight away, so if they double click on it the 2nd click shouldn't work
fairm010 Posted October 15, 2014 Author Posted October 15, 2014 Thanks Nick, that seems to have disabled that button.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now