Make Editor field required

Make Editor field required

marwimarwi Posts: 33Questions: 9Answers: 0

Is it possible to setup a text field to be required on client side, so it won't be possible to send data to the server when clicking [Save] or [Update], as long as this text field is kept empty? No server side validation required.

Answers

  • colincolin Posts: 15,240Questions: 1Answers: 2,599
    edited August 2018

    Hi @marwi ,

    Yep, you can parse your data in the preSubmit and reject it if your criteria isn't met. There's an example of Editor doing what you're after here.

    Cheers,

    Colin

This discussion has been closed.