How to validate the fields in Subpanel when users click at Save button

Hi all,

Do you know how to validate the fields when users click at Save button?

I've attached the picture where I mean for more understanding

Thank you in advanced.

Parents
  • I've tried it already. recordlist.js is used for listing of each module.

    I tried this one clients/base/views/subpanel-list/subpanel-list.js

    But I don't know what event I need to use.

    Please help me.

    I've put my code below.

    ({
    extendsFrom:'SubpanelListView',
    initialize: function(options){
    this._super('initialize', [options]);
    this.context.on('button:save_button:click', this.do_check_case_topic, this); // Please help me to check this line
    },
    do_check_case_topic: function(event) {
    console.log("In Check Save Event");

    },

    });

Reply
  • I've tried it already. recordlist.js is used for listing of each module.

    I tried this one clients/base/views/subpanel-list/subpanel-list.js

    But I don't know what event I need to use.

    Please help me.

    I've put my code below.

    ({
    extendsFrom:'SubpanelListView',
    initialize: function(options){
    this._super('initialize', [options]);
    this.context.on('button:save_button:click', this.do_check_case_topic, this); // Please help me to check this line
    },
    do_check_case_topic: function(event) {
    console.log("In Check Save Event");

    },

    });

Children
No Data