cancel
Showing results for 
Search instead for 
Did you mean: 

Looking for a javascript file to add custom success and failure message for Edit Properties page

shojib1
Champ in-the-making
Champ in-the-making
I'm looking for a javascript file to add custom success and failure prompt message for Edit Properties page. After you click on the Edit Properties in the document details page, when you save it, I want to display custom success and failure prompt messages. I tried playing with the following files with no luck. Maybe I'm doing it wrong

tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\edit-metadata\

Here are some useful resources.

tomcat\webapps\share\WEB-INF\classes\alfresco\site-data\template-instances\edit-metadata.xml
tomcat\webapps\share\WEB-INF\classes\alfresco\templates\org\alfresco\edit-metadata.ftl
1 REPLY 1

hardik1512
Star Contributor
Star Contributor
Edit-Metadata is basically a form. So I think the js you are looking for is forms-runtime.js.  It has _submitInvoked function which is called on form submission. There you can write your customization.