• Resolved viesiissz

    (@viesiissz)


    Hello!

    I have question, about field (Application email/URL)

    Is possible to allow to (www.example.lv) ? For now allow https://

    Thank you !

Viewing 6 replies - 1 through 6 (of 6 total)
  • If you want to disable email/URL validation on that field…Just add this to your child theme’s?functions.php?file (omit the <?php, there only needs to be one at the top of the?functions.php?file),? or using the Code Snippets plugin:

    add_filter( 'job_manager_application_field_skip_email_url_validation', '__return_true' );

    But yes by default it should work fine without having the https:// or https:// as WP Job Manager will automatically add that to the URL if the value is detected to NOT be an email address (and it’s not already set on the field value)

    Thread Starter viesiissz

    (@viesiissz)

    @tripflex

    Thanks so much for responsive !

    I tried with this code and without it.

    But still when i trying insert with (www.)

    Showing error (Application email/URL is a required field)

    Are you sure you’re entering it in the application field itself? If the error is from that field (validation wise) it would throw a different error, the error you’re reporting means that for some reason the application field itself does not have any value being passed to the submit function.

    You haven’t disabled that field and added your own or anything like that, right?

    Ahhh i see what is happening now, it’s the new sanitizer they have on it which is clearing out the field value before it’s actually passed to the field that is processing it.

    There was a “somewhat” issue existing sorta related to this, which i commented on and hopefully we can get a fix added soon for:

    https://github.com/Automattic/WP-Job-Manager/issues/2067

    To fix this for now… Just add this to your child theme’s?functions.php?file (omit the <?php, there only needs to be one at the top of the?functions.php?file),? or using the Code Snippets plugin:

    
    add_filter( 'submit_job_form_fields', 'smyles_remove_application_sanitizer' );
    function smyles_remove_application_sanitizer( $fields ){
        if( isset( $fields['job']['application']['sanitizer'] ) ){
            unset( $fields['job']['application']['sanitizer'] );
        }
        return $fields;
    }
    
    Thread Starter viesiissz

    (@viesiissz)

    @tripflex

    Big Thanks !!!

    Work now !!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Application email/URL’ is closed to new replies.