Skip to content

Select Options Fieldtype : default behaviour when field is required #349

@er314

Description

@er314

I guess the observed behaviour is intended, but it's very surprising to me :

When a Select Options field is "required", I would expect (I would want) that the user MUST position a value for this field, otherwise PW MUST refuse to save the page.

But the observed behaviour is that PW does position value id 1 by default.
And I can't seem to find a way to prevent this : in field settings, tried pre-selecting option blank to no avail ; tried setting default value = 0 to no avail.

Of course the user MAY change this default value. But this is misleading, and it's not "my intended behaviour".
In other words, when a Text field is "required", the user MUST position a value for this field ; PW does not position a default value "hello world" without my consent. Right ? :-)

Edit : Disregarding our opinions about what the default behaviour should be, I guess we can agree that, when "What option do you want pre-selected (if any)" is set to blank, then there should be no option pre-selected, also when the field is required ; so in this case it's a bug ?

PW 3.0.71
cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions