Skip to content
This repository has been archived by the owner on May 25, 2023. It is now read-only.

required has no effect #15

Open
dgsiegel opened this issue Jun 10, 2019 · 3 comments
Open

required has no effect #15

dgsiegel opened this issue Jun 10, 2019 · 3 comments

Comments

@dgsiegel
Copy link

required: true does not seem to have an effect on this field. According to the Kirby docs the field has to be filled in correctly to be saved. But it behaves like a normal text field with no validation at all. Would be nice if it would behave like the original Url field.

fields:
  button:
    label:  Button
    type:   link
    required: true
@medienbaecker
Copy link
Owner

"filled in": easily possible
"filled in correctly": difficult

Ideally the field would use the validation of the url, page, email, file or phone field, depending on the type that was selected.

@dgsiegel
Copy link
Author

I don't think easy or hard should be the right criteria for this issue :) But I'd expect to either have all the Kirby settings working correctly or to have it documented somewhere, that they are deliberately ignored.

@medienbaecker
Copy link
Owner

FYI: this issue depends on this core issue: getkirby/ideas#234

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants