You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Applications add-on and on submission of an application, if there is a required file field, there is no error message stating that this is a required field. Clicking the submit button, the page refreshes and there is no indication if the application went through or failed. Note: the application does not go through.
Steps to reproduce the behavior:
Go to the admin center
Update the Application Form to include a required file type by adding new field type
Go to any job detail page
Scroll to Apply for job button
Click button
Click Send application button without entering a file
Notice the page refreshes without any type of notification.
Screenshots
Notice the required field tooltip for the text field. No such tooltip for the file field when trying to submit an application.
Expected behavior
When submitting an application with a required file field there should be an alert to the user that this is a required field. If it is selected as required in the admin center under the application form. Behavior should be similar to the text field type alert. See above screenshot.
In the job_manager/form-fields/file-field.php adding <?php if ( ! empty( $field['required'] ) ) echo 'required'; ?> to line 55, fixes the issue. All other fields have the required check in the input field code.
Isolating the problem (mark completed items with an [x]):
I have deactivated other plugins and confirmed this bug occurs when only WP Job Manager plugin is active.
This bug happens with a default WordPress theme active.
I can reproduce this bug consistently using the steps above.
WordPress Environment
WordPress Version: 5.8
WP Job Manager Version: 1.35.1
PHP Version: PHP 7.3
Other important details: WP Job Manager - Applications Version 2.5.2
The text was updated successfully, but these errors were encountered:
When using the Applications add-on and on submission of an application, if there is a required file field, there is no error message stating that this is a required field. Clicking the submit button, the page refreshes and there is no indication if the application went through or failed. Note: the application does not go through.
Steps to reproduce the behavior:
Screenshots
Notice the required field tooltip for the text field. No such tooltip for the file field when trying to submit an application.
Expected behavior
When submitting an application with a required file field there should be an alert to the user that this is a required field. If it is selected as required in the admin center under the application form. Behavior should be similar to the text field type alert. See above screenshot.
In the job_manager/form-fields/file-field.php adding
<?php if ( ! empty( $field['required'] ) ) echo 'required'; ?>
to line 55, fixes the issue. All other fields have the required check in the input field code.Isolating the problem (mark completed items with an [x]):
WordPress Environment
The text was updated successfully, but these errors were encountered: