Custom button in the workspace related list action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2024 09:36 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2024 10:09 PM
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();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2024 10:30 PM
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