Announcements
I have an input field in text format to allow the input of hh:mm. The whole thing is also sent as text through a patch into the dataverse. I am trying to allow alternative input formats like: from 900 to 1700, meaning that 900 is formatted to 9:00 and 1700 to 17:00.
Text( Value( Concat( MatchAll( TextInput.Text, Match.Digit ), FullMatch ) ), "##:##" )
i am getting following issue
Yah you can't put that in its own default. If you want it to visually change in the textbox itself it would need to do something liek this
put a slider control in, make its default
Len(TextInput1)
make it's OnChange
UpdateContext({defaultFormat: Text( Value( Concat( MatchAll( TextInput1.Text, Match.Digit ), FullMatch ) ), "##:##" )}); Reset(TextInput1)
now make your textinputs default value
defaultFormat
hide your slider and ce voila
the default of the input field is currently thisitem.starttime. how do I connect the two so that the start time from the dataverse is displayed there + I can make new entries that are correctly formatted with defaultFormat?
When you load the form add this in UpdateContext({defaultFormat:Blank()})
Then set that controls default to
If(!IsBlank(ThisItem.starttime) && IsBlank(defaultFormat), ThisItem.starttime, defaultFormat)
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 342 Super User 2026 Season 2
M Bilal Khan 271
Mohsin Ali 239