cancel
Showing results for 
Search instead for 
Did you mean: 

How to display a message through a javascript in alfresco share?

renato_fritola
Confirmed Champ
Confirmed Champ

I created a javascript to customize some actions and I need, in some cases, to display a treated message on screen. How can I do this ?

6 REPLIES 6

krutik_jayswal
Elite Collaborator
Elite Collaborator

Below is sample code for same.

Alfresco.util.PopupManager.displayPrompt(
{
    title:"Property Exists!",
    text: "You can not property which allready exists"
});

There is also and dialog available for ok cancel type of prompt.

Hi, first thank you for the feedback. I added this code into a .js file for testing and include it as a folder rule to always run when updating a document but it does not work.

Is there a prerequisite for it to work? some addon?

Hi Renato,

The given code does not refer to Alfresco Javascript API (which is server side). You can not do this with Javascript API.

Regards.

--C.

Thanks for updating this info