How to set time input format without user selection?

When I set the format for a Time Input component, the format only seems to work if the user picks a new time. If the user just leaves the time at the default/current value, the format is always HH:MM AM/PM. Using these blocks, if I don’t select a different time, the alert will not use the Hour:Minute (24h) format I’ve selected (ignore the date and direction related blocks):

Is there a way to fix this?

1 Like

Hello @tatiang
Please set the style here:

Is it not possible to set the style using blocks? I’d like for the input to show as 12h format but the value to be stored as 24h format. So I was setting the style to Hour:Minute AM/PM in the component properties panel and then changing it to Hour:Minute (24h) after the user clicks a button as in the screenshot above.

It is possible to set the style using blocks but as you mentioned the user needs to select a time. You can solve this issue by using the following blocks: