Custom button in the workspace related list action

VengadeshB52217
Tera Contributor

Hi All,

 

I have an requirement for need to create the custom button in the csm workspace related list tab while i'm clicking the button that should be open the popup window(Modal) with the string field and having the two buttons called confirm and cancel, while clicking the confirm button that record should be append in the related list if user clicking the cancel button the popup window/modal should be closed.

 

Regards

Vengadesh

2 REPLIES 2

GeenlakuntaM
Tera Contributor

Hi @VengadeshB52217 , In the UI action click on workspace form button and use the below code in workspace script. use the appropriate action under answer = true. 

function onClick(g_form) {
        var answer = confirm("Are you Sure want to approve the record ");
        if(answer == true){
            g_form.setValue('state',6);
        }
            g_form.save();
 
}

 

VengadeshB52217
Tera Contributor

Hi @GeenlakuntaM ,

 

The button is in the related list of the workspace

 

If the button is clicked we need to show a modal/popup window