We help IT Professionals succeed at work.

Modify Filter to cause a field to be not Required

911bob asked
Last Modified: 2017-04-21
Working with a Simple Job Board Plug in the is requiring the user to upload a resume. I have very simple needs and do not need to have the resume attached (but would like to leave it as optional)

I have narrowed the code down to the line:
apply_filters('sjb_resume_required', 'required="required"')

But I am unsure how to "turn it off.
Any guidance would be appreciated.
Below is a bit more of the code before and after..

$sjb_attach_resume = '<div class="form-group">'
                    . '<label for="applicant_resume">' . apply_filters('sjb_resume_label', __('Attach Resume', 'simple-job-board')) . '<span class="sjb-required required">*</span></label>'
                    . '<input type="file" name="applicant_resume" id="applicant-resume" class="sjb-attachment form-control "' . apply_filters('sjb_resume_required', 'required="required"') . '>'
                    . '<span class="sjb-invalid-attachment validity-note" id="file-error-message"></span>'
                    . '</div>';
            echo apply_filters('sjb_attach_resume', $sjb_attach_resume);
Watch Question


You can just remove

Open in new window

from any field that is not required.
If it's still requesting to fill the field then
you  have to check the javascript validation and php server side validation, if there is any validation rule about 'required' for this specific field.
Web Applications Developer
Unlock this solution and get a sample of our free trial.
(No credit card required)



Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.