TypeRocket / core

TypeRocket core source files where all the magic lives.
https://typerocket.com
36 stars 21 forks source link

Best way to set a repeater field required #83

Closed lukwi closed 3 years ago

lukwi commented 4 years ago

Hey,

first of all i want to say, that i really like TypeRocket! It gives me the possibility to extend post types, which comes from another plugin in a simple way. Great :)

I have just a little question. What is the best way to set a textfield required, which is defined in a repeater? I think about to use the raw render setting and use html required attribute, but maybe there is better way to that.

Greetings from germany,

Lucas

kevindees commented 4 years ago

Hey @lukwi

The way you are doing it is correct. I like to have all the validation handled by the backend. We plan to add a lot more control over validation on the front-end to Pro in the future though.

Thanks, Kevin