Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting the value of date to "today" breaks the form (investigating) #2828

Closed
Tracked by #2750
joeribekker opened this issue Mar 6, 2023 · 3 comments · Fixed by #3932
Closed
Tracked by #2750

Setting the value of date to "today" breaks the form (investigating) #2828

joeribekker opened this issue Mar 6, 2023 · 3 comments · Fixed by #3932
Assignees
Labels
bug Something isn't working
Milestone

Comments

@joeribekker
Copy link
Contributor

No description provided.

@joeribekker
Copy link
Contributor Author

@LaurensBurger elaborate pleaser

@LaurensBurger
Copy link
Collaborator

LaurensBurger commented Mar 6, 2023

when using the following logic to set the date in a date component or user variable (date)

{
  "component": "",
  "variable": "datecomponent",
  "formStep": null,
  "formStepUuid": null,
  "action": {
    "type": "variable",
    "value": {
      "var": "today"
    }
  }
}

the form crashes

TypeError /api/v2/submissions/{submission_uuid}/steps/{step_uuid}
fromisoformat: argument must be str

@sergei-maertens
Copy link
Member

Fixed by accident via a9f2c90

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants