Page 1 of 1

[SOLVED] check default character fields controllo campi default

Posted: Thu Mar 22, 2018 10:49 am
by serpe76
Script URL: Localhost
Version of script: 2.7.6
Hosting company: personal
URL of phpinfo.php: 5.7
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

sorry for my language, how can I change the minimum text to be inserted in the client head, I would like more than 10 characters to be stranded

é possibile inserire un controllo per la lunghezza minima nel campo clienet ? grazie

Re: check default character fields controllo campi default

Posted: Thu Mar 22, 2018 3:40 pm
by Klemen
Unfortunately I do not understand what you mean, can you please describe with examples?

Re: check default character fields controllo campi default

Posted: Fri Mar 23, 2018 2:51 pm
by serpe76
Image

Vorrei poter inserire un controllo per un minimo di caratteri da inserire nel campo nome


I would like to be able to insert a check for a minimum of characters to insert in the name field

Re: check default character fields controllo campi default

Posted: Sat Mar 24, 2018 8:40 pm
by Klemen
There is no built-in way of doing it, you will need to modify the source code to achieve this.

For example, in submit_ticket.php you would find code

Code: Select all

$tmpvar['name']	 = hesk_input( hesk_POST('name') ) or $hesk_error_buffer['name']=$hesklang['enter_your_name'];
and just below that add something like

Code: Select all

if (strlen($tmpvar['name']) < 6)
{
    $hesk_error_buffer['name'] = 'Name must have at least 6 characters';
}
Similar for other fields; if you need help finding and modifying the correct code I recommend hiring a PHP developer for help.

Re: check default character fields controllo campi default

Posted: Fri Apr 06, 2018 7:27 pm
by serpe76
Grazie , risolto