PHP Required Fields

Heyy,we need your heeelp :grin:
how can we make the “Text-Field” required like the “Title”?
We tried it under panel/all/fields/text/text.php
and add this:$this->required = true;
nothing happened…By the way, we are newbies…, no php knowledge sooo… :sweat_smile: please please help us :pray:

1 Like

just add required: true in the blueprint file, like

  text:
    label: Text
    type: textarea
    required: true
1 Like

ooooh really… haha :sweat_smile: :joy: thank yooouuu :blush:

Your welcome :slight_smile:

You might want to take a look at http://getkirby.com/docs/panel/blueprints and http://getkirby.com/docs/cheatsheet :wink:

i read the documentation, really !
but yeaah… too blind or my english is too bad :confounded:

No problem :wink: Just wanted to link the manual for future reference and other readers …