kirby-link-field icon indicating copy to clipboard operation
kirby-link-field copied to clipboard

required has no effect

Open dgsiegel opened this issue 6 years ago • 3 comments

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

dgsiegel avatar Jun 10 '19 23:06 dgsiegel

"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.

medienbaecker avatar Jun 11 '19 06:06 medienbaecker

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.

dgsiegel avatar Jun 11 '19 09:06 dgsiegel

FYI: this issue depends on this core issue: https://github.com/getkirby/ideas/issues/234

medienbaecker avatar Sep 02 '19 11:09 medienbaecker