if i don't want attachments in this form, i would remove it from the form itself.
select the title and the control and click the magical button "delete".
David,
You could also add the Attachment control to a panel and conditionally hide the panel, based on the same conditions that you have placed on your attachment control. I assume that there are conditions under which you would like to have people add attachments, hence not deleteing the control altogether.
Cheers,
Mark
Hi Mark, thank you for your answer.
I don't want to hide the whole Attachment control, just the two buttons "Add Attachment" and "Delete". I just want to give some restricted contributors the right to read the attachment, but not the right to delete it. or add a new one.
Thank you again
David
did you resolve this in the end?
Hi,
yes I handle it with CSS/JS
First you need to apply all Nintex rules in you form.
Then hide all attachments links by adding this in your CSS code
.nf-attachmentsRow .nf-attachmentsLink[disabled="disabled"],
.nf-attachmentsRow .propertysheet[disabled="disabled"] {
display: none !important;
}
Finally add this JS in the JS part of your form to enable the "add attachment" button
function enableAttachmentLink(isDisabled){
NWF$("table.nf-attachmentsTable td.ms-vb > a").removeAttr("disabled");
}
NWF$(document).ready(function(){
NWF.FormFiller.Events.RegisterAfterReady(function(){
setTimeout(enableAttachmentLink(true), 900);
});
})
hope this helps ?