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
  • Please suggest me any way to achive this , I will be greatful to you

  • I played with it and this changes the labels to Yes and No quite easily when the call to the alert is made:

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    app.alert.show('message-id', {
    level: 'confirmation',
    messages: 'Test yes/no',
    autoClose: false,
    confirm: {label:"Yes"},
    cancel: {label:"No"},
    onCancel: function () {
    alert("No!");
    },
    onConfirm: function () {
    alert("Yes!");
    }
    });
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Thanks a lot for your help.

Reply Children
No Data