• Resolved theuxdes

    (@theuxdes)


    Hi,

    I added another upload field within Apply Online Form by editing: job-application file and putting the below code:

    		$sjb_attach_whitecard = '<div class="form-group">'
                        . '<label for="applicant_resume">' . apply_filters('sjb_resume_label', __('Upload Whitecard/Ticket', '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_whitecard);

    It’s showing fine in the front end, see here: https://prnt.sc/f47uxk
    But after submitting the second file is not available in the back end, only resume, see here: https://prnt.sc/f47vhg

    How to add another file in the back end?

    Thanks,
    Kashka

    • This topic was modified 7 years, 10 months ago by theuxdes.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author PressTigers

    (@presstigers)

    Kashka,

    It’s not showing because you are just displaying it on the front-end. Please write the code for backend as well.

    Please customize the code in the following files:
    simple-job-board/includes/class-simple-job-board-ajax.php
    simple-job-board/includes/class-simple-job-board-applicants.php

    Thanks & Regards,
    PressTigers

    Thread Starter theuxdes

    (@theuxdes)

    Hi,

    thanks for that.

    These files are not included in the list of templated files, is it ok to edit them or will they get overwritten with the next release?

    Thanks,
    Kashka

    Plugin Author PressTigers

    (@presstigers)

    Kashka,

    These files are having WP hooks that you need to utilize for overriding default functionality of SJB. By using these hook, your code will not be overwritten on plugin update.

    Or you can also purchase SJB premium extension named as Multiple Attachment Fields add-on from our marketplace.

    Thank you. Let us know if you have any further query.

    Regards,
    PressTigers

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘adding another upload field’ is closed to new replies.