Page 1 of 1

[SOLVED] Require full name on ticket creation

Posted: Fri Feb 04, 2022 2:36 pm
by shadedk
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.

Re: Require full name on ticket creation

Posted: Sat Feb 05, 2022 8:04 am
by Klemen
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

Code: Select all

$tmpvar['name']
3. just below that line add

Code: Select all

if ( ! strpos($tmpvar['name'], ' ')) {
    $hesk_error_buffer['name'] = 'Please enter your full name';
}
4. save and test

Not perfect, but should do the basic job.

Re: Require full name on ticket creation

Posted: Fri Feb 11, 2022 1:46 pm
by shadedk
Works like a charm. Thanks.

I've bought you a drink for all the good help through the years, have a great weekend :)