Hi

Can anyone help me.

Our email addresses are very long and my users are not going to want to enter their full email address every time they open a ticket.

So is it possible to change the email address field to Username and then in some way automatically add the @[deleted] on to the end of the Username and then grab the whole lot and place it in the place in the database?

Any help would be much appreciated.

Thanks

Yogiman!

5 days later

Is this for customers creating tickets or staff creating tickets?

It's for customers posting tickets.

I should explain that all tickets come from user's with internal logins via Active Directory.

:)

Ok, I'll take a look at modifying the form code and get back to you shortly. (hopefully) ;)

Ok, I'll take a look at modifying the form code and get back to you shortly. (hopefully) ;)

Thank you very much that is very kind of you. :)

Thank you very much that is very kind of you. :)

No problem!

Well, I found two ways of doing this (or rather one easy way and one way that looked really convoluted and would take me hours to completely track down).

So here's the easy way - its not as pretty but it should do the trick I think:

Remove the following:

include/client/open.inc.php

<input type="text" name="email" size="25" value="<?=$info?>">

and insert

<? if(!($errors)){?>

<input type="text" name="email" size="25" value="@yourdomain.ext">

<?}else{?>

<input type="text" name="email" size="25" value="<?=$info?>">

<?}?>

This way all they have to do is type in their username before the @ symbol. Hopefully they don't get confused in the process ;)

No problem!

Well, I found two ways of doing this (or rather one easy way and one way that looked really convoluted and would take me hours to completely track down).

So here's the easy way - its not as pretty but it should do the trick I think:

Remove the following:

include/client/open.inc.php

<input type="text" name="email" size="25" value="<?=$info?>">

and insert

<? if(!($errors)){?>

<input type="text" name="email" size="25" value="@yourdomain.ext">

<?}else{?>

<input type="text" name="email" size="25" value="<?=$info?>">

<?}?>

This way all they have to do is type in their username before the @ symbol. Hopefully they don't get confused in the process ;)

Wonderful, I will give it a go, again thank you so much for your kind help.

Yogiman! :)

Solved

Brilliant. Worked a treat and has solved my problem.

Thank you again for the great help.

Brilliant. Worked a treat and has solved my problem.

Thank you again for the great help.

No problem, happy to help :)

Write a Reply...