I'm using this code which is not working for me. I added a Button the assign the code as javascript in the click action but nothing happens.
var subject = RIFN.rawValue + "-" + CurrentDate.rawValue;
var myDoc = event.target;
try {
myDoc.mailDoc({
bUI: false,
cTo: 'test@acme.com',
cSubject: subject,
cSubmitAs: "PDF"
});
} catch (e) {
// exception handling...
}
Views
Replies
Total Likes
Hi,
works for me. Do you have JavaScript enabled in your PDF viewer?
Do other scripts work?
Do you see any errors in the JavaScript console when using the form in Acrobat?
Views
Replies
Total Likes
This is what I get opening the debugger
Acrobat JavaScript Debugger Functions Version 10.0
Acrobat EScript Built-in Functions Version 10.0
Acrobat SOAP 10.0
Exception in line 1 of function top_level, script XFA:Countries[0]:#subform[0]:DropDownList[0]:DateField2[0]:initialize
Exception in line 5 of function top_level, script XFA:Countries[0]:#subform[0]:DropDownList[0]:initialize
Line 1
$.rawValue = num2date(date(), "YYYY-MM-DD")
Line 5
item = xfa.form.createNode(Adobe.ContentType.Boolean, "MatchFirstCharacters"); |
This is what I get when I click submit
Exception in line 1 of function top_level, script XFA:Countries[0]:#subform[0]:CommandCenter[0]:Button1[0]:click
Views
Replies
Total Likes
Can you share your form?
There are several problems to solve, so it's neccessary to see it.
Views
Replies
Total Likes
https://workspaces.acrobat.com/?d=DJvMT-ovVloiXZnT88lNQw
https://workspaces.acrobat.com/?d=-lI5uw1x-N5khAbYX2y-4Q
Thanks for taking the time to look at this. I looked at your other posts as well for reference. This work on an empty form but on this one it will not for some reason.
Views
Replies
Total Likes
Views
Likes
Replies