Skip to content

Allow all types to have no label/hint/media if they have a static default #790

@lognaturel

Description

@lognaturel

From #508 (comment)

If a question of any type has a dynamic default, it's currently not required to have a label/hint/media. However, if a question of any type other than hidden has a static default, an error requiring a label/hint/media is shown.

First, we should see if there was discussion around that distinction.

I don't think users typically think about the distinction between static and dynamic defaults (I don't when I'm designing forms) so it feels surprising. If we removed it, users would be able to represent typed constants without the hidden type.

The counterargument to this would be that it's useful in an XLSForm to see constants at a glance and that's what the hidden type allows. Following that argument, it would be more confusing for any type to be able to also be a constant because it would reduce the meaningful validation that can be done.

Having written this out, I don't have strong feelings one way or the other. I'll probably continue using hidden in the very rare cases where I need a constant.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions