Skip to main content
New Participant
October 11, 2023
Answered

JavaScript help needed..

  • October 11, 2023
  • 2 replies
  • 1137 views

I need to calculate TOTAL MILES wherein Start Mileage is subtracted from End Mileage (giving net mileage).   I am not familiar with JavaScript and I've poked around their tutorials for days now with no luck.  How do I calculate these fields when both Start and End  "fillable form" numbers will change?  

Do I use the Permissions label in the calculation?  how do I identify that field ?....  All help is appreciated .. 

    This topic has been closed for replies.
    Correct answer Nesa Nurani

    You can use simplified field notation under 'Calculate' tab, since your field have space in its name you need to escape it with backslash, enter this into simplified field notation:

    END\ MILEAGEHRS01 - START\ MILEAGEHRS01

    2 replies

    Nesa Nurani
    Nesa NuraniCorrect answer
    Inspiring
    October 11, 2023

    You can use simplified field notation under 'Calculate' tab, since your field have space in its name you need to escape it with backslash, enter this into simplified field notation:

    END\ MILEAGEHRS01 - START\ MILEAGEHRS01

    New Participant
    October 11, 2023

    Thank you for your quick response..   so I have entered that as shown in the photo attached, however, it's not calculating.  

    any other ideas? 

    New Participant
    October 11, 2023

    kglad
    Adobe Expert
    October 11, 2023

    assuming acrobat...

     

    -------

    in the future, to find the best place to post your message, use the list here, https://community.adobe.com/

    p.s. i don't think the adobe website, and forums in particular, are easy to navigate, so don't spend a lot of time searching that forum list. do your best and we'll move the post (like this one has already been moved) if it helps you get responses.



    <"moved from using the community">