How do prevent a user from entering number outside a given range in a numeric input box?

I'm adding a numeric input box to my shiny app using the code -

numericInput("num", label = h5("Select Hour of Day"), value = 6, min = 1, max = 24, step = 1)

This correctly sets the range to 1 - 24 but only if you use the scroll icon in the input box, but still allows the user to manually type in a number outside that range. Is there a way to prevent a user for manually typing a number outside of the 1 - 24 range, or is there a way to add some message telling the user to limit their input to the 1 - 24 range?

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.