validate hours and minutes

Hello,

I'm validating two fields:
the first field is the hours and the second the minutes.


I need the hours to be greater than or equal to 9 and the minutes less than or equal to 59

validations: {
if(
and(
local!hours >=9,
or(between(local!minute<>0,local!minute>59)),
"The values ​​in this field must be between 0 and 59"
),
"The effective hours can not be more than 9",
{}
)
}

thanks

  Discussion posts and replies are publicly visible