1 person found this helpful
1) To uncheck other checkboxes use the a script like this in the click:Event of each checkbox.
// Uncheck checkbox "CB2" and "CB3"
CB2.value.integer.value = 0;
CB3.value.integer.value = 0;
In Designer it could look like:
var ID = String(new Date().getTime());
But, this method is generally not available for Adobe Reader users!
Means, only if the form was extended with required rights by LiveCycle Reader Extensions.
Thanks a bunch, first one works like a charm!
The attachmentbutton however. I'm currently using a totally different script (found it online);
var AttachmentDescription = this.name;
AttachmentDescription.rawValue = "New Attachment" + AttachmentDescription.rawValue;
var strAttachmentName = AttachmentDescription.rawValue;
var myDoc = event.target;
var objDoc = myDoc.getDataObject(strAttachmentName);
var FileName = "";
FileName.rawValue = objDoc.path;
//this.presence = "invisible";
AttachmentDescription.access = "protected";
This works perfectly for me, but perhaps it's not compatible with the second button I need?
Btw, I do have LiveCycle Reader Extensions.
Again, thanks, and thanks in advance!