budibase
budibase copied to clipboard
[BUDI-7326] Time only field throws validation error when default value is set to 15:00 after 1 submission
Checklist
- [X] I have searched budibase discussions and github issues to check if my issue already exists
Hosting
- Self
- Method: docker compose
- Budibase Version: 2.8.10
- App Version: 2.8.10
Describe the bug
Whenever using the date picker component and configuring it to use time only then setting the default values to 05.00 or 14.00 etc. After creating one and then creating another the validate form action will kick in and prevent the form from being submitted. (Erroring as must be a valid date
)
It seems that the date isn't being converted to an acceptable format after the first submission + the clearing of the form. Initial instance being job1Start: "2000-01-01T07:00:00.000Z"
, after creation uses the default value set instead of converting it again; Job1Start: "7:00"
To Reproduce Steps to reproduce the behavior:
- Create any column that uses a date/time within the data area
- Add a form + date picker component nested inside the form to a screen within the design area
- Configure it so its time only input
- Set the default date to a number e.g. 14.00
- Publish/preview and submit the form once and then again.
- See error
Expected behavior The default value should be auto converted like it is on page load to include the correct format needed to successfully submit the form.
Screenshots First submission attempt
Second submission attempt (After form has been cleared)
Validation response
Desktop (please complete the following information):
- OS: MacOS
- Browser Brave
- Version 1.56
From SyncLinear.com | BUDI-7326