As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<showCancelButton>false</showCancelButton>
Can you post contents of your web-client-config-custom.xml file?
<config evaluator="string-compare" condition="Action Wizards"> <aspects> <aspect name="custom:InputFields"/> </aspects> </config> <config evaluator="aspect-name" condition="custom:InputFields"> <property-sheet> <separator name="sepFields1" display-label="Input Fields" component-generator="HeaderSeparatorGenerator" /> <show-property name="custom:Source"/> <show-property name="custom:ODN"/> <show-property name="custom:daterecieved"/> <show-property name="custom:usagerights"/> <show-property name="custom:language"/> <show-property name="custom:domain"/> <show-property name="custom:docutype"/> <show-property name="custom:wordcount"/> <show-property name="custom:NDN" show-in-edit-mode="false"/> <separator name="sepFields2" display-label="Data Tracking" component-generator="HeaderSeparatorGenerator" /> <show-property name="custom:sendto"/> <show-property name="custom:datesent"/> <show-property name="custom:projname"/> <show-property name="custom:purpose" component-generator="MultilingualTextAreaGenerator"/> <show-property name="custom:recieveddate" ignore-if-missing="true"/> <show-property name="custom:estDateBack" ignore-if-missing="true"/> <showCancelButton>false</showCancelButton> </property-sheet> </config>
<script type="text/javascript"> window.onload=hideCancel; function hideCancel(){ var cancelButton = document.getElementById("dialog:cancel-button"); cancelButton.style.display="none"; } </script>
I found a solution in order to do it. I changed core's jsp files though (a better solution could be to create a custom dialog and to modify the navigation rules).Edit the alfresco/jsp/content/add-content-dialog.jsp file. The code hides the button.<script type="text/javascript"> window.onload=hideCancel; function hideCancel(){ var cancelButton = document.getElementById("dialog:cancel-button"); cancelButton.style.display="none"; } </script>