Hi,
is there a simple way to show an error message and refuse a commited ticket, if a certain number of characters for describing the issue is not matched?
This would be useful to get rid of improper tickets, that are not descibed well enough.
regards
Show error message when a certain number of characters is not matched.
Moderator: mkoch227
Re: Show error message when a certain number of characters is not matched.
No built-in way, but you could for example add something like this to your submit_ticket.php file:
1. backup existing files
2. open file submit_ticket.php in Notepad++ or some other powerful text editor
3. find
4. just ABOVE that code add something lile
5. save, upload and test
1. backup existing files
2. open file submit_ticket.php in Notepad++ or some other powerful text editor
3. find
Code: Select all
// Is category a valid choice?
Code: Select all
if (strlen($tmpvar['message']) < 100) {
$hesk_error_buffer['message'] = 'Please describe your issue in more detail (at least 100 chars)';
}
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: Show error message when a certain number of characters is not matched.
Wow i didn't think that would be that simple! That speaks for a very well designed software achitecture.
Thank you very much for your help!
Thank you very much for your help!
