budibase icon indicating copy to clipboard operation
budibase copied to clipboard

[BUDI-7326] Time only field throws validation error when default value is set to 15:00 after 1 submission

Open ConorWebb96 opened this issue 1 year ago • 1 comments

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:

  1. Create any column that uses a date/time within the data area
  2. Add a form + date picker component nested inside the form to a screen within the design area
  3. Configure it so its time only input
  4. Set the default date to a number e.g. 14.00
  5. Publish/preview and submit the form once and then again.
  6. 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

Screenshot 2023-07-25 at 10.12.22.png

Second submission attempt (After form has been cleared)

Screenshot 2023-07-25 at 10.12.29.png

Validation response

Screenshot 2023-07-25 at 10.17.02.png

Desktop (please complete the following information):

  • OS: MacOS
  • Browser Brave
  • Version 1.56

From SyncLinear.com | BUDI-7326

ConorWebb96 avatar Jul 25 '23 09:07 ConorWebb96