anusii / anusii/markdown_widget_builder
Add an option that allows developers to choose whether to include unfilled user inputs when submitting the form
@tonypioneer is already working on this.
Since May 11, 2026.
- Dominant language
- Dart
- Stars
- 1
- Forks
- 0
- Avg merge
- 1d 3h
- Merged PRs (30d)
- 1
Description
Description
Add an option that allows developers to choose whether to include unfilled user inputs when submitting the form. It could be a new command tag, or a new parameter in the submit button tag.
Do not write null values for radio, dropdown, or date fields into the response anymore (to avoid downstream consumers expecting a String but receiving null).
I have the following comment regarding the above decision: we should allow developers to decide whether to write null values or exclude those fields in the JSON structure. This decision should be made by the app developers, who know the best way to generate the JSON structure based on the app's business logic. The decision of:
- Skipping fields and not generating them, or
- Generating them with null values, or
- Generating them with empty strings or any other default value (
0for integers or1970-01-01for dates),
should be made by the developer.
If all agree, this could be an enhancement for the widget: a new non-critical issue/ticket.
Originally posted by @srodriguez142857 in https://github.com/anusii/markdown_widget_builder/issues/101#issuecomment-4404205102
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.