Skip to content

Ignore empty inputs if field isn't required #5

Open
fullonic wants to merge 1 commit intodevfrom
ignore-not-required-empty-inputs
Open

Ignore empty inputs if field isn't required #5
fullonic wants to merge 1 commit intodevfrom
ignore-not-required-empty-inputs

Conversation

@fullonic
Copy link
Collaborator

Currently, if a form field is not required and leaves it blank, it can raise an error if an empty value string ("") isn't valid, for example, a UUID field.

This PR fixes this issue by checking if the field is required and if not, checks if its value is empty. If the value is empty, the field is ignored.

We need to check what happens with other fields type, where the empty value can be another type than an empty string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant