Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7443747
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T11:22:53+00:00 2026-05-29T11:22:53+00:00

Until this morning I did not know it was possible to have JavaScript in

  • 0

Until this morning I did not know it was possible to have JavaScript in a PDF, but a work colleague needs help.

She has 5 textfields defined. They are labelled £TRAVEL, £SUBSISTENCE ACCOMODATION, £TELEPHONES, £MISCELLANEOUS and £Less cash advance

4 of these fields will take number input which will be summed up and the 5th field input subtracted from the sum of the first four.

Then there is a 6th field which will display the result.

I am trying the following code:

var travel = this.getField("£TRAVEL");
var accom = this.getField("£SUBSISTENCE ACCOMODATION");
var teleph = this.getField("£TELEPHONES");
var misc = this.getField("MISCELLANEOUS");
var less = this.getField("£Less cash advance");

(travel + accom + teleph + misc) - less;

Am I on the right track and if I am, how do I assign the calculation to a 6th textfield below?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T11:22:53+00:00Added an answer on May 29, 2026 at 11:22 am

    It will be something like:

    var travel = this.getField("£TRAVEL").value;
    var accom = this.getField("£SUBSISTENCE ACCOMODATION").value;
    var teleph = this.getField("£TELEPHONES").value;
    var misc = this.getField("MISCELLANEOUS").value;
    var less = this.getField("£Less cash advance").value;
    
    this.getField("name_of_6th_field").value = (travel + accom + teleph + misc) - less;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I asked this question to multiple people and until now I do not have
I have this horrible habit of typing the below and not catching it until
I've published my website many times. But didn't think about this though until I
I have this classic ASP site which has been working fine until we updated
I came across this recently, up until now I have been happily overriding the
Spend last night (until early morning) hours on fixing this layout issues. I read
I'm running a python script on a shared hosting server which until this morning
I searched google this morning and could not find an answer, so I would
Boss called this morning and apparently our Live button is not working. http://702wedding.com/ Im
Up until this point, I haven't done much in javascript. I recently started playing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.