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

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

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

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

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

Post by claude vidal »

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: 1645
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 »

Hi Claude,

Thank you for the email. I am sorry this has stopped working for you. Please send that document to support@pdf-xchange.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: 138
Joined: Wed Mar 09, 2016 12:47 am

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

Post by claude vidal »

Sent as email.
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
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 »

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: 138
Joined: Wed Mar 09, 2016 12:47 am

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

Post by claude vidal »

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: 1645
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 »

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: 138
Joined: Wed Mar 09, 2016 12:47 am

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

Post by claude vidal »

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 6842 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: 8436
Joined: Wed Jan 03, 2018 6:52 pm

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

Post by TrackerSupp-Daniel »

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. :)
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
claude vidal
User
Posts: 138
Joined: Wed Mar 09, 2016 12:47 am

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

Post by claude vidal »

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: 8436
Joined: Wed Jan 03, 2018 6:52 pm

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

Post by TrackerSupp-Daniel »

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.
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
claude vidal
User
Posts: 138
Joined: Wed Mar 09, 2016 12:47 am

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

Post by claude vidal »

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: 2347
Joined: Wed Jan 18, 2006 12:10 pm

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

Post by Willy Van Nuffel »

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: 8436
Joined: Wed Jan 03, 2018 6:52 pm

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

Post by TrackerSupp-Daniel »

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!
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
claude vidal
User
Posts: 138
Joined: Wed Mar 09, 2016 12:47 am

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

Post by claude vidal »

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: 1645
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 »

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: 138
Joined: Wed Mar 09, 2016 12:47 am

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

Post by claude vidal »

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 142 times
User avatar
TrackerSupp-Daniel
Site Admin
Posts: 8436
Joined: Wed Jan 03, 2018 6:52 pm

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

Post by TrackerSupp-Daniel »

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.
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
claude vidal
User
Posts: 138
Joined: Wed Mar 09, 2016 12:47 am

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

Post by claude vidal »

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: 8436
Joined: Wed Jan 03, 2018 6:52 pm

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

Post by TrackerSupp-Daniel »

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.
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
claude vidal
User
Posts: 138
Joined: Wed Mar 09, 2016 12:47 am

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

Post by claude vidal »

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: 8436
Joined: Wed Jan 03, 2018 6:52 pm

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

Post by TrackerSupp-Daniel »

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.
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
claude vidal
User
Posts: 138
Joined: Wed Mar 09, 2016 12:47 am

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

Post by claude vidal »

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: 17824
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 »

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

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

Post by TrackerSupp-Daniel »

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!
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD

+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Post Reply