Java script 'mailto' on 'submit a form' not actionned

Forum for the PDF-XChange Editor - Free and Licensed Versions

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Paul - Tracker Supp, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software

Post Reply
claude vidal
User
Posts: 132
Joined: Wed Mar 09, 2016 12:47 am

Java script 'mailto' on 'submit a form' not actionned

Post by claude vidal » Fri Mar 10, 2017 7:19 pm

Editor 6.0.320.0

A form with a field set to :

First - Run a Java script:
var f = this.getField("Today_Date");
if (f.value=="")
f.value = util.printd("yyyy-mm-dd", new Date());

Second - Submit a form:
mailto:emailid@gmail.com
export format .pdf

The first step gets executed, but not the second one (no email confirmation dialog). This form operated correctly last year. I'm not sure if the difference is the Editor's version or some difference in my system.

I'm hoping that Support can help me diagnose this.

P.S. The form has sensitive information, so if need be I could send it direct to support

User avatar
Patrick-Tracker Supp
Site Admin
Posts: 1668
Joined: Thu Mar 27, 2014 6:14 pm
Location: Vancouver Island
Contact:

Re: Java script 'mailto' on 'submit a form' not actionned

Post by Patrick-Tracker Supp » Fri Mar 10, 2017 10:23 pm

Hi Claude,

Thank you for the email. I am sorry this has stopped working for you. Please send that document to support@tracker-software.com. I will take a look at it and see what can be done.

Thanks!
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Cheers,

Patrick Charest
Tracker Support North America

claude vidal
User
Posts: 132
Joined: Wed Mar 09, 2016 12:47 am

Re: Java script 'mailto' on 'submit a form' not actionned

Post by claude vidal » Mon Mar 13, 2017 12:10 am

Sent as email.

User avatar
Will - Tracker Supp
Site Admin
Posts: 6806
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: Java script 'mailto' on 'submit a form' not actionned

Post by Will - Tracker Supp » Mon Mar 13, 2017 8:19 am

Thanks for that Claude, I've reproduced this here and have created ticket RT-3842 to track the problem.

Apologies for the inconvenience!
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com

claude vidal
User
Posts: 132
Joined: Wed Mar 09, 2016 12:47 am

Re: Java script 'mailto' on 'submit a form' not actionned

Post by claude vidal » Mon Mar 13, 2017 9:36 pm

I mentioned the possibility my environment might have changed to explain the 'submit a form' not being actionned. I just ruled that out by using the form with Acrobat Reader DC: I saw the confirmation dialog then the email fired. So it appears something got lost in the newer version(s) of the Editor.

User avatar
Patrick-Tracker Supp
Site Admin
Posts: 1668
Joined: Thu Mar 27, 2014 6:14 pm
Location: Vancouver Island
Contact:

Re: Java script 'mailto' on 'submit a form' not actionned

Post by Patrick-Tracker Supp » Mon Mar 13, 2017 10:17 pm

Thank you for the update claude,

We too are seeing this behavior.

Thank you for your patience and understanding.

Cheers!
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Cheers,

Patrick Charest
Tracker Support North America

claude vidal
User
Posts: 132
Joined: Wed Mar 09, 2016 12:47 am

Re: Java script 'mailto' on 'submit a form' not actionned

Post by claude vidal » Mon Apr 16, 2018 7:42 pm

I hadn't used this form since last year, so refiring this thread.

Using 324.3 Plus, I have this script:
mailto.png
I now get this error:
Mail error.png
Mail error.png (51.23 KiB) Viewed 2061 times
The same form in Acrobat Reader DC shows no error and confirms Outlook is the default email application. But no email is sent.

Also curious to see how ticket RT-3842 concluded.

User avatar
TrackerSupp-Daniel
Site Admin
Posts: 2508
Joined: Wed Jan 03, 2018 6:52 pm

Re: Java script 'mailto' on 'submit a form' not actionned

Post by TrackerSupp-Daniel » Mon Apr 16, 2018 9:09 pm

Hello Claude,
Have you tried using the open web link action instead of the submit form action, it may work better for you.

In regards to ticket RT-3842, It is currently marked as resolved since build 322. :)
Daniel McIntyre
Support Technician
Tracker Software Products (Canada) LTD

Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623

claude vidal
User
Posts: 132
Joined: Wed Mar 09, 2016 12:47 am

Re: Java script 'mailto' on 'submit a form' not actionned

Post by claude vidal » Tue Apr 17, 2018 4:42 am

TrackerSupp-Daniel wrote:Hello Claude,
Have you tried using the open web link action instead of the submit form action, it may work better for you.
That will open the email dialog with the recipient filled in, but there is no provision for an attachment.
TrackerSupp-Daniel wrote:In regards to ticket RT-3842, It is currently marked as resolved since build 322. :)
Could you check how it was resolved? I read 'resolved' as in 'mailto works', but it doesn't now.

Have you tried reproducing on your end like Will did initially?

User avatar
TrackerSupp-Daniel
Site Admin
Posts: 2508
Joined: Wed Jan 03, 2018 6:52 pm

Re: Java script 'mailto' on 'submit a form' not actionned

Post by TrackerSupp-Daniel » Tue Apr 17, 2018 8:16 pm

Hello again claude,
I have just noticed that ive been trying in build 325 on this end, not 324.3 like you mentioned yesterday.
Could you update to this version and let me know if you still have the issue?
Ive validated that it works as submitting a form on my end, but im curious to know if it still does not work on yours.
Daniel McIntyre
Support Technician
Tracker Software Products (Canada) LTD

Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623

claude vidal
User
Posts: 132
Joined: Wed Mar 09, 2016 12:47 am

Re: Java script 'mailto' on 'submit a form' not actionned

Post by claude vidal » Wed Apr 18, 2018 4:52 pm

Updated to 325.0, restart: still same issue, same message.

So I can debug this at my end, could you provide some background on the Tracker error message "Error [MailLib]: Not supported" ? Under what circumstances would it trigger?

Willy Van Nuffel
User
Posts: 1387
Joined: Wed Jan 18, 2006 12:10 pm

Re: Java script 'mailto' on 'submit a form' not actionned

Post by Willy Van Nuffel » Wed Apr 18, 2018 6:47 pm

Hello Claude,

Can you please read a previous thread from here:
viewtopic.php?f=62&t=30242&p=120031#p120031

I suppose you did not read the final topics ...

Best regards.

User avatar
TrackerSupp-Daniel
Site Admin
Posts: 2508
Joined: Wed Jan 03, 2018 6:52 pm

Re: Java script 'mailto' on 'submit a form' not actionned

Post by TrackerSupp-Daniel » Wed Apr 18, 2018 8:50 pm

Claude,

In case willy's post does not solve the issue,
We are doing a bit of an investigation about carried over bugs, take a look at this post:
viewtopic.php?f=62&t=30596#p123353

Thanks!
Daniel McIntyre
Support Technician
Tracker Software Products (Canada) LTD

Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623

claude vidal
User
Posts: 132
Joined: Wed Mar 09, 2016 12:47 am

Re: Java script 'mailto' on 'submit a form' not actionned

Post by claude vidal » Wed Apr 18, 2018 11:54 pm

Willy Van Nuffel wrote:Hello Claude,

Can you please read a previous thread from here:
viewtopic.php?f=62&t=30242&p=120031#p120031

I suppose you did not read the final topics ...

Best regards.
Thanks Willy, that did the trick.

The email gets created with the pdf attachment, but a progress window "Preparing to attach files" at 100% remains open. Sending the email closes that progress window, but I'm wondering if this is "as designed" or am I facing another issue?

User avatar
Patrick-Tracker Supp
Site Admin
Posts: 1668
Joined: Thu Mar 27, 2014 6:14 pm
Location: Vancouver Island
Contact:

Re: Java script 'mailto' on 'submit a form' not actionned

Post by Patrick-Tracker Supp » Thu Apr 19, 2018 12:02 am

Hello claude vida,

Thank you for you post. Strangely this used to be by design that the message would remain open until the message is sent. Could you please post the file you are seeing this with so that we can test further?

Thank you!
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Cheers,

Patrick Charest
Tracker Support North America

claude vidal
User
Posts: 132
Joined: Wed Mar 09, 2016 12:47 am

Re: Java script 'mailto' on 'submit a form' not actionned

Post by claude vidal » Thu Apr 19, 2018 4:24 am

Patrick-Tracker Supp wrote:Hello claude vida,

Thank you for you post. Strangely this used to be by design that the message would remain open until the message is sent. Could you please post the file you are seeing this with so that we can test further?

Thank you!
The attached form is not the actual I'm using (sensitive info), but the attached test form shows the same behavior
Attachments
cvtest-1.pdf
(6.15 KiB) Downloaded 37 times

User avatar
TrackerSupp-Daniel
Site Admin
Posts: 2508
Joined: Wed Jan 03, 2018 6:52 pm

Re: Java script 'mailto' on 'submit a form' not actionned

Post by TrackerSupp-Daniel » Thu Apr 19, 2018 7:37 pm

Hello Claude,

Can you tell us what mail client you are using? I cannot reproduce this with thunderbird, though I suspect it is likely another.
Daniel McIntyre
Support Technician
Tracker Software Products (Canada) LTD

Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623

claude vidal
User
Posts: 132
Joined: Wed Mar 09, 2016 12:47 am

Re: Java script 'mailto' on 'submit a form' not actionned

Post by claude vidal » Thu Apr 19, 2018 8:20 pm

TrackerSupp-Daniel wrote:Hello Claude,

Can you tell us what mail client you are using? I cannot reproduce this with thunderbird, though I suspect it is likely another.
Office Pro Plus 2010.

I tried on another PC: same email client, same result.

I found that the email client has focus and the progress window is a sub to that email window. The progress window inherits the coordinates of the last time it popped; the same applies to the email window. It so happens that my email client window does not completely overlap the progress window because of the positions they each had the last time they popped. The progress windows closes when its parent email window closes.

This is just cosmetics. But the developers could simply query the coordinates of the newly opened email window and place the progress window center/center.

I suspect you could see that progress window on your PC if you moved your Thunderbird email client away from its current position.

User avatar
TrackerSupp-Daniel
Site Admin
Posts: 2508
Joined: Wed Jan 03, 2018 6:52 pm

Re: Java script 'mailto' on 'submit a form' not actionned

Post by TrackerSupp-Daniel » Thu Apr 19, 2018 10:27 pm

That was my initial thought as well, however it seems no progress bar appears within thunderbird at all. Are you able to identify if outlook is actually the parent of the window? ill be changing my default client for a test in this regard as soon as I have spare time today.
Daniel McIntyre
Support Technician
Tracker Software Products (Canada) LTD

Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623

claude vidal
User
Posts: 132
Joined: Wed Mar 09, 2016 12:47 am

Re: Java script 'mailto' on 'submit a form' not actionned

Post by claude vidal » Fri Apr 20, 2018 1:04 am

TrackerSupp-Daniel wrote:... Are you able to identify if outlook is actually the parent of the window? ill be changing my default client for a test in this regard as soon as I have spare time today.
All I know is that the progress bar will remain at 100% and will only close when the email window closes. The progress window is from PDFXchange.
snip_20180419210521.png

User avatar
TrackerSupp-Daniel
Site Admin
Posts: 2508
Joined: Wed Jan 03, 2018 6:52 pm

Re: Java script 'mailto' on 'submit a form' not actionned

Post by TrackerSupp-Daniel » Fri Apr 20, 2018 6:08 pm

Hello Claude,
Oddly this box only seems to appear with Outlook, the other mail clients I've tried (Thunderbird, and Mail for windows) do not seem to have it appear at all.
Ive created a ticket about this matter: #4331
Please reference this number when asking about the bug in the future, and any support personnel will be able to retrieve this information.
Daniel McIntyre
Support Technician
Tracker Software Products (Canada) LTD

Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623

claude vidal
User
Posts: 132
Joined: Wed Mar 09, 2016 12:47 am

Re: Java script 'mailto' on 'submit a form' not actionned

Post by claude vidal » Sat Apr 21, 2018 11:15 pm

TrackerSupp-Daniel wrote:Hello Claude,
Oddly this box only seems to appear with Outlook, the other mail clients I've tried (Thunderbird, and Mail for windows) do not seem to have it appear at all.
Ive created a ticket about this matter: #4331
Please reference this number when asking about the bug in the future, and any support personnel will be able to retrieve this information.
Thanks!

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 13539
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Java script 'mailto' on 'submit a form' not actionned

Post by Tracker Supp-Stefan » Mon Apr 23, 2018 12:07 pm

:D

User avatar
TrackerSupp-Daniel
Site Admin
Posts: 2508
Joined: Wed Jan 03, 2018 6:52 pm

Re: Java script 'mailto' on 'submit a form' not actionned

Post by TrackerSupp-Daniel » Tue Jul 31, 2018 10:06 pm

Hello Claude,
I am afraid this ticker has been rejected as it is a limitation of Outlook, you will find that other PDF handlers suffer from the same illness when dealing with outlook.
Apologies for the inconvenience, and have a nice day!
Daniel McIntyre
Support Technician
Tracker Software Products (Canada) LTD

Sales: +1 (250) 324-1621
Fax: +1 (250) 324-1623

Post Reply