How to modify aler box button label for particular module ?

Hi There,

I am looking to change the buttons label of alert confirmation box on the basis of particular module . 

For ex : As per below screenshot , i would like to change these button labels for one module. 

Please suggest me any solution for that .

Parents
  • Here is an example

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    app.alert.show('message-id', {
    level: 'confirmation',
    messages: 'Is this the first call?',
    autoClose: false,
    onCancel: function () {
    // alert("Yes!");
    that.model.set('first_meeting_call_c', 'Yes');
    // that._saveModel();
    // that.cancelClicked();
    that.handleSave();
    },
    onConfirm: function () {
    // alert("No!");
    that.model.set('first_meeting_call_c', 'No');
    // that._saveModel();
    // that.cancelClicked();
    that.handleSave();
    }
    });
    $('.alert-btn-confirm')[0].innerHTML = "No";
    $('.alert-btn-cancel')[0].innerHTML = "Yes";
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    Please note lines 20 & 21 where we change the labels

  • Thanks a lot for your help.

Reply Children
No Data