Hello,
Is it possible to require full name, or just two words in the ticket creations form?
We have just on one first name 7 persons with the same name, and when they (and other with same first name) create tickets they only write their first name and not full name. So we need to open the ticket and click on the name, so when can see their e-mail before we can see who it really are.
Thanks.
[SOLVED] Require full name on ticket creation
Moderator: mkoch227
[SOLVED] Require full name on ticket creation
Last edited by shadedk on Fri Feb 11, 2022 1:46 pm, edited 1 time in total.
Re: Require full name on ticket creation
The simple solution to this would be to check if the name contains a space or not.
Try this:
1. open submit_ticket.php in Notepad++
2. find the first line that starts with
3. just below that line add
4. save and test
Not perfect, but should do the basic job.
Try this:
1. open submit_ticket.php in Notepad++
2. find the first line that starts with
Code: Select all
$tmpvar['name']
Code: Select all
if ( ! strpos($tmpvar['name'], ' ')) {
$hesk_error_buffer['name'] = 'Please enter your full name';
}
Not perfect, but should do the basic job.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
You should follow me on Twitter here
Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools


Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...
Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Re: Require full name on ticket creation
Works like a charm. Thanks.
I've bought you a drink for all the good help through the years, have a great weekend
I've bought you a drink for all the good help through the years, have a great weekend
