04-01-2010 04:05 AM
<showCancelButton>false</showCancelButton>
to the 'web-client-config-custom.xml' file. But alas, It does nothing as far as I can see . 04-01-2010 04:35 AM
04-01-2010 04:44 AM
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>
05-27-2010 10:27 AM
<script type="text/javascript">
window.onload=hideCancel;
function hideCancel(){
var cancelButton = document.getElementById("dialog:cancel-button");
cancelButton.style.display="none";
}
</script>
06-07-2010 03:40 AM
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>
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.