You are not logged in.
Pages: 1
Hi,
I hope someone can help me with this.
I've modified helpdesk.html to fit our needs. (local users have to be able to add there name, office nr and phone) But the values given in the form are not included in the ticket.
I've been looking into tracking.injector.php, but I can't seem to figure it out.
Can someone please help me in the right direction?
Many tnx.
Yves
My helpdesk.html form:
<div id="contenuform">
<form method="post" name="helpdeskform" action="tracking.injector.php">
<input type="hidden" name="type" value="Helpdesk" />
<h2 align='center'>HBAC Helpdesk support form</h2>
<fieldset>
<legend>Help is needed with the following issue:</legend>
Please solve this problem:
<select name="priority">
<option value="5">Immediately</option>
<option value="4">As soon as possible</option>
<option value="3">Today</option>
<option value="2">Next week</option>
<option value="1" selected='selected' >When you have time</option>
</select>
</fieldset>
<fieldset>
<legend>Please provide us with your details</legend>
<table>
<tr><td>Name :</td><td> <input type="text" name="realname" /></td></tr>
<tr><td>Office:</td><td> <input type="text" name="location" /></td></tr>
<tr><td>Phone :</td><td> <input type="text" name="phone" /></td></tr>
</table>
</fieldset>
<fieldset>
<legend>Please describe your problem.</legend>
<h4>Problem description:</h5>
<textarea name="contents" cols="60" rows="20"></textarea>
</fieldset>
<p align='center'><input type="submit" value="Send" /></p>
</form> </div>
I've changed this line in tracking.injector.php, but this isn't correct i suppose.
54 $varstosav = array('emailupdates', 'uemail', 'computer', 'device_type','realname','phone','location','contents','_my_items','category');
Last edited by yvesdm (2008-01-29 11:47:11)
Offline
First, you say some fields does not work : but which one ?
only fields in tickets can be included:
realname is a field of the user so it can be included in the ticket
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
First, you say some fields does not work : but which one ?
only fields in tickets can be included:
realname is a field of the user so it can be included in the ticket
Strange, none of the above are included in the ticket
The only things I manage to include are
<input type="text" name="name" />
and
<input type="text" name="uemail" />
The e-mail is filled in at the right place on the ticket, 'name' is filled in the title of the ticket.
When I try 'realname', the name entered is not shown on the ticket.
The ticket always shows 'helpdesk injector" as user
Or am I misunderstanding something?
Kind regards and tnx for the support!
Yves
Offline
realname can not be included. You need to use the author field to insert the ID of the user.
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
realname can not be included. You need to use the author field to insert the ID of the user.
Also the author field doesn't work for me. I don't understand why.
This is the form code:
<fieldset>
<legend>Please provide us with your details</legend>
<table>
<tr><td>Name:</td><td> <input type="text" name="author" size='30'/></td></tr>
<tr><td>Office:</td><td> <input type="text" name="name" size='30'/></td></tr>
<tr><td>E-mail:</td><td> <input type="text" name="uemail" size='30' /></td></tr>
</table>
</fieldset>
Is there anything else i need to change for this to work?
Many tnx
Y.
Offline
author is an integer correspondng to the ID of the user.
See database scheme to know which variables to set.
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
author is an integer correspondng to the ID of the user.
See database scheme to know which variables to set.
Yes, I've noticed that, but the input comes from the form.
I don''t have all the users able to use this form in glpi.
So, I want an 'unknown user for glpi' to be able to leave his name on the form.
You know what I mean? If I don't make this input field, users will obviously forget sometimes to write their name below their request and we don't know who to contact.
I thought about changing the datatype of the author field in the database, but I guess this would break a lot :-)
Is there another solution to this? Or do I see it wrong?
Kind regards,
Yves
Last edited by yvesdm (2008-02-01 09:14:38)
Offline
helpdesk.html is an anonymous ticket creation process. Why insert author ?
Author can be added to the description field if needed.
MoYo - Julien Dombre - Association INDEPNET
Contribute to GLPI : Support Contribute References Freshmeat
Offline
Pages: 1