Disable required for email field

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
cwyenberg
Posts: 56
Joined: Sat Jun 16, 2018 12:53 am

Disable required for email field

Post by cwyenberg »

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

How do I disable the email field (or any other non-custom field) as being required? This would be for staff only as we sometimes take support phone calls and would like to keep a record of the call without having to complete all required fields.
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

Re: Disable required for email field

Post by Klemen »

In Admin panel > Settings > Help desk tab > Features you have on/off for "Require email", "Require subject" and "Require message".

You need version 2.8.0 or newer for this.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
cwyenberg
Posts: 56
Joined: Sat Jun 16, 2018 12:53 am

Re: Disable required for email field

Post by cwyenberg »

Thanks for the reply, Klemen. My question was not clear enough. I was aware of these settings but was looking for a way to change them to required for customers but not for staff.

In thinking about it, an alternative approach would be to make these invisible to the public and create custom email, subject, etc. fields in their place.
Klemen
Site Admin
Posts: 10143
Joined: Fri Feb 11, 2005 4:04 pm

Re: Disable required for email field

Post by Klemen »

Ah, I see. Well, you could keep the setting as required, then manually overwrite the value in inc/admin_functions.inc.php file, for example by pasting

Code: Select all

$hesk_settings['require_email']=0;
just below

Code: Select all

define('HESK_NO_ROBOTS', true);
Now any file that required admin_functions.inc.php (so most of the admin panel) will see the value as not required.

Didn't test it though.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image 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
cwyenberg
Posts: 56
Joined: Sat Jun 16, 2018 12:53 am

Re: Disable required for email field

Post by cwyenberg »

Seems to work fine. I'll update if any issues.

Thanks!
Post Reply