cancel
Showing results for 
Search instead for 
Did you mean: 

Custom action from javascript is not executed

jrautner
Champ on-the-rise
Champ on-the-rise

Hello everybody,

i'd like to ask why is not executed my custom action (new button in DocLib and document detail). It is defined in share-config-custom.xml. I found out that the id of action element is a problem. My id was like my-custom-action. When i changed it to myCustomAction everything was working fine as expected. I'd like to ask why dash in id value is problem.

Thank you very much

3 REPLIES 3

EddieMay
World-Class Innovator
World-Class Innovator

Hi @jrautner 

Can you provide the code where it wasn't working?

Thanks,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!

sanjaybandhaniya
Elite Collaborator
Elite Collaborator

I dont think problem is of dash.

Please post the code how you are calling action.

Ref : https://blog.arvixe.com/create-javascript-actions-in-alfresco/

Thank you for your quick response.

Problem was something else. I can not identify what was it, but custom action works now.