UI action

shabbir9
Tera Contributor

Hi team ,

 

i have created the UI action button on RITM .Requirement is after clicking the UI action button we have to show the popup 'comments need to be added to perform this action ' after filling the comments only UI action need to be performed can anyone help me in the script how to achieve this

6 REPLIES 6

Hi @shabbir9 ,
Did the above code work.


If the information helps you, Kindly mark as Helpful and Accept the solution.
Regards,
Najmuddin.

Anantha27
Mega Guru

Hi @shabbir9 

 

For the given require you can add the client script for confirmation.

 


function confirmWithComments() {
var comments = prompt("Comments need to be added to perform this action:");

if (comments == null || comments.trim() === "") {
alert("Comments are required to proceed.");
return false; 
}

g_form.setValue('comments', comments);

return true;
}

 

I hope this may work to your query

If this information helps you, kindly mark it as Helpful or correct.

 

Thank you

Anantha.