• Resolved whitewayweb

    (@whitewayweb)


    Hello

    I want to change required field text “Please fill in the field” in application form field. Please help me. I don’t find it.

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author PressTigers

    (@presstigers)

    Hello @whitewayweb,

    Are you want to change the * to “Please fill in the field” in application form fields?

    If yes then you can change it from the job-application.php file on line # 48 by using following plugin path:
    simple-job-board/templates/single-jobpost/job-application.php

    Note: Your changes will be lost after the plugin update. So, we recommend you to use Job Board templating feature.

    Thanks for writing to us.

    Regards,
    PressTigers

    • This reply was modified 7 years, 9 months ago by PressTigers.
    Thread Starter whitewayweb

    (@whitewayweb)

    Thanks for your reply.

    NO… Open this link: https://prntscr.com/fn6pa2

    I want to change required field validation message “Please fill in the field”.
    I do not find anywhere in the plugin. Please help me.

    Thanks

    • This reply was modified 7 years, 9 months ago by whitewayweb.

    You will have to edit template as suggested and use oninvalid event to set custom text as follows

    <input class="form-control" type="email" required="" placeholder="username" oninvalid="this.setCustomValidity('Please Enter valid email')"></input>

    Plugin Author PressTigers

    (@presstigers)

    @whitewayweb,

    It’s an HTML5 validation default text. To change it, you need to know override template and add HTML5 attribute that allows you to customize the text for this field text. Following is the template file that is having the code for job application form:
    simple-job-board/templates/single-jobpost/job-application.php

    Please use the SJB templating feature to make these changes.

    Thank you!

    Regards,
    PressTigers

    Thread Starter whitewayweb

    (@whitewayweb)

    Thank you for your reply.

    I have try this code “<input class=”form-control” type=”email” required=”” placeholder=”username” oninvalid=”this.setCustomValidity(‘Please Enter valid email’)”></input>” but its not working

    Open this link:
    https://techteams.net/jobs/part-time-field-technician-2/

    Click submit button. hereI want to change required field text.

    Thanks
    White Way Web

    . '<input oninvalid="this.setCustomValidity(\'Please Enter valid name\')" type="text" name="' . $name . '" class="form-control ' . $required_class . '" id="' . $id . '" ' . $is_required . ' >'

    Above is the change I have made on line 75, you need to escape quotes using backward slash.

    Take advantage of templating feature as suggested in very first response, otherwise you will lose changes on every plugin update.

    Thread Starter whitewayweb

    (@whitewayweb)

    Hello

    Thank you very much for your great help.
    It’s working but showing another issue. If I fill the first name and click submit button still validation text showing “Please enter the first name”.

    Open this link:
    https://techteams.net/jobs/part-time-field-technician-2/

    Thanks
    White Way Web

    Well that’s strange behaviour but you can add following events to fix it.

    onchange="this.setCustomValidity(\'\')" oninput="this.setCustomValidity(\'\')"

    By adding both these events the message string is set to empty and it won’t show up unless field is invalid. I have tested it in Chrome, IE and Firefox so I think it should work for fine for you.

    Thread Starter whitewayweb

    (@whitewayweb)

    It’s working now. Thank you very much for your great help.

    Thanks Again
    White Way WEb

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to change required filed text in application form?’ is closed to new replies.