Skip to Content

Adobe Desinger: Caluculation with JavaScript

Hello collegues,

I don't know whether this is the right place for my question but I will try it. I created an Adobe Form with the Adobe Designer. I would like to calculate the sum of three fields and display the result in another field. I have to use JaveScript but I am not an expert in this topic. Very helpful would be a litte example from with a simple addition of two fields.

Thanks in advance,

Alex

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Sep 30, 2005 at 02:41 PM

    Hi,

    why don't you use FormCalc? This is part of Adobe Designer and it's easier to work with (at least in the Adobe environment). An example can be found in your Adobe installation path, e.g. 'C:\Program Files\Adobe\Designer 6.0\Samples\Purchase Order\Dynamic\Forms\Purchase Order.xpd'.

    For sure, JavaScript is possible, too. For getting values of the form you need the method rawValue. Example in JavaScript: "Result.rawValue = Op1.rawValue + Op2.rawValue;"

    Same in FormCalc: "Result = Op1 + Op2;"

    Regards,

    Jan

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.