How to access Javascript (sub)function code  SOLVED

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

titi_nicolas
User
Posts: 6
Joined: Thu Nov 09, 2017 11:07 am

How to access Javascript (sub)function code

Post by titi_nicolas »

Hello,
I would like to edit the Javascript functions in a form (made with Acrobat).
For example, the action "Mouse Up" linked to a button is "Run a Javascript"... is a call to the subfunction "lang_fre();"
question.png
How do I access (edit) the code of this subfunction with PDF-Xchange ?

Thanks.
You do not have the required permissions to view the files attached to this post.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17949
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: How to access Javascript (sub)function code

Post by Tracker Supp-Stefan »

Hello Tim,

Click on the code itself - and the "Edit..." button at the top bar should activate, and clicking that will allow you to edit the code further.

Regards,
Stefan
titi_nicolas
User
Posts: 6
Joined: Thu Nov 09, 2017 11:07 am

Re: How to access Javascript (sub)function code

Post by titi_nicolas »

Hello Stefan,

If I click on the "Edit" button, I do not access the sub-function code (see screenshot).
q2.png
For comparison, I also attach a screenshot of the function "lang_ita()" when using Adobe Acrobat.
q3.png
This is what I am looking for with PDF-Xchange.
Is this feature simply not implemented? Or am I missing something ?

Regards.
You do not have the required permissions to view the files attached to this post.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17949
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: How to access Javascript (sub)function code

Post by Tracker Supp-Stefan »

Hello Tim,

Can you please attach the PDF file with this code inside - so that we can take a look ourselves?

Cheers,
Stefan
User avatar
Ivan - Tracker Software
Site Admin
Posts: 3550
Joined: Thu Jul 08, 2004 10:36 pm
Location: Vancouver Island - Canada

Re: How to access Javascript (sub)function code  SOLVED

Post by Ivan - Tracker Software »

It seems in Acrobat you are looking at document scripts, not the script associated with a form action. Am I right?

In the Editor you can find document level scripts on Document Properties (File -> Document Properties; or Ctrl + D) dialog on "JavaScript" page.
Tracker Software (Project Director)

When attaching files to any message - please ensure they are archived and posted as a .ZIP, .RAR or .7z format - or they will not be posted - thanks.
titi_nicolas
User
Posts: 6
Joined: Thu Nov 09, 2017 11:07 am

Re: How to access Javascript (sub)function code

Post by titi_nicolas »

[deleted]
Last edited by titi_nicolas on Wed Feb 14, 2018 1:13 pm, edited 1 time in total.
titi_nicolas
User
Posts: 6
Joined: Thu Nov 09, 2017 11:07 am

Re: How to access Javascript (sub)function code

Post by titi_nicolas »

Ivan - Tracker Software wrote:It seems in Acrobat you are looking at document scripts, not the script associated with a form action. Am I right?

In the Editor you can find document level scripts on Document Properties (File -> Document Properties; or Ctrl + D) dialog on "JavaScript" page.

Yes, this is what I was looking for !
Thank you very much.
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17949
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: How to access Javascript (sub)function code

Post by Tracker Supp-Stefan »

Glad to hear all is now good titi_nicolas!

Cheers,
Stefan