27
Views
4
Comments
Solved
Input Date Widget On Change fires before date is complete
Question
Application Type
Reactive
Service Studio Version
11.54.64 (Build 63346)

I have several input date widgets that have On Change events that look at the value of the widget and execute tasks like hiding or highlighting itself other widgets. But I am getting exceptions when the on change event fires before the user has completed typing in the date.

Is there a way to trap that the date isn't complete OR trap the exception and have it not show an error message and resume the client action?

When the on change action fires when the date isn't complete, it shows as a null date. That would be a good way to trap except that a null date is valid for all of these data elements.

2022-11-25 14-29-20
Mateus Guillardi
Solution

Hi Jeff,

OnChange will be triggered whenever the input value is changed... A good option is to use event right below OnChange and select OnBlur, which will trigger after the user "leaves" the input.

Another good option is the Debounce component... It is very useful to define an interval in milliseconds for the onchange to be triggered. Especially if the user types the date instead of selecting the date from the Date Picker
Debounce Forge Component

2024-02-20 19-14-17
Niranjan Kumar

Hi Jeff,

You can use Interactive Datepicker from OSUI. It provides more configurable options as well as events.

- Niranjan

UserImage.jpg
Jeff Kest

Does it allow entering dates via typing?  I don't want the users to have to navigate calendars.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.