how can control fields options?

how can control fields options?

moonomoono Posts: 2Questions: 1Answers: 0

Hi..

I'm testing the editor version.

My question is about field options.

new button - the field is active,

edit button - the field is inactive or invisible

For example, in sign up,
new button - the ID field is active,
edit button - ID field is invisible

This question has an accepted answers - jump to answer

Answers

  • rf1234rf1234 Posts: 3,000Questions: 87Answers: 421
    edited February 2023 Answer ✓
    editor
        .on('open', function (e, mode, action) {
            if ( action === 'create' ) {
                this.enable(['yourField1, yourField2']);
    //or        this.show(['yourField1, yourField2']);
            } else {
                this.disable(['yourField1, yourField2']);
    //or        this.hide(['yourField1, yourField2']);
            }
        });
    
  • moonomoono Posts: 2Questions: 1Answers: 0

    It's resolved.
    Your answer has been My best luck today.
    thank you!

Sign In or Register to comment.