Split widget validation scenarios
- Last UpdatedOct 10, 2025
- 2 minute read
The Split widget supports the following validation scenarios.
|
Scenario |
Widget Expected Behavior |
|---|---|
|
Missing values or invalid format for the startDateTime and endDateTime properties. |
The Split widget returns an empty data object. An error message appears, and the Split widget isn't shown. |
|
The value for the endDateTime is earlier or the same time as the startDateTime property. |
|
|
The Split widget is loaded without the startDateTime and endDateTime properties. |
|
|
The increment is larger than the period of start and end date/time. |
|
|
The entered value in the input box has an invalid format or the input box is left empty. |
The Split widget returns the earlier slider value and an error message appears. |
|
The entered value in the input box is outside the event duration. |
|
|
The initialEventColor property is not defined. |
The Split widget returns the current slider value (for start and end date/time and initial split date/time). The default color is set to gray, and an error message appears. The split operation can continue, but the message is shown throughout the operation. The Split widget is shown, but the error message is retained regardless of the actions performed. |
|
The initialEventColor property has an invalid color value or format. |
No error is shown and the Split widget returns to the current slider value (for start and end date/time and initial split date/time), while the initial event color is set to gray. Note: In Work Tasks Pro, the Split widget behaves differently in terms of the initial event color; instead of gray, it keeps the previous color. When you assign a new event color (with an invalid color), the entire split bar is filled with that new color—whatever split direction you select. |
|
The value for the initialSplitDateTime property is not in the correct format or is outside the event's time range. |
The Split widget returns the current slider value, or the slider is positioned somewhere near the center. The Split widget is shown, but an error message appears. When the slider is moved, the left or right button is selected, or when the input box is updated, the message disappears. |
|
The duration of the start and end date and time can't cover all increment intervals. |
The Split widget returns the current slider value and its representation is shown. The slider doesn't move according to the increment value provided. |