Hi Metabox team,
I need to validate start and end times. The rule is start time should be less than end time always. The current validation rules allow only to check the current input value.
'validation' => [
'rules' => [
'session_start_time' => [
'remote' => admin_url( 'admin-ajax.php?action=custom_validate_session_start_time' ),
],
'session_end_time' => [
'remote' => admin_url( 'admin-ajax.php?action=custom_validate_session_end_time' ),
],
],
'messages' => [
'session_start_time' => [
'remote' => 'Start time should be less then end time.',
],
'session_end_time' => [
'remote' => 'End time cannot be in the past of start time.',
],
],
],
Is there a way to check one Metabox input with another Metabox input field in the same post?
--
Many thanks
Lee