My first day with Live Cycle... I have two numeric fields that i want to subtract. How do I do it?
Views
Replies
Total Likes
Use the following code to get the subtraction..
NumericField1.rawValue - NumericField2.rawValue
Your language should be FormCalc.
Thanks
Srini
Views
Replies
Total Likes
Thank you so much for answering! WHERE do I write the code?
Views
Replies
Total Likes
It usually depends on your requirement. If you want the subtraction happen when the user leaves any of NumericField then you need to place it in the exit event of both the NumericFields.
At the same time you need to find where to display the subtracted value. If you want to display the subtraction in another NumericField. Then your code will look like: NumericField3.rawValue = NumericField1.rawValue - NumericField2.rawValue;
If you want the Subtraction happen on a button click, move the code to click event of the button..
Hope this gives an idea..
Thanks
Srini
Views
Replies
Total Likes
Hi AktivOrtopedteknik,
Could you please send the requierments because there are too many cases you can do scripting for almost 10 different events. So to better help you send the requierments so I can tell what is the best route.
Thank you,
Views
Replies
Total Likes
Almost ashamed to tell you but when I meant WHERE to write the code I asked in wich field to type it. Not in the form but in the program... But I found it myself! The scriptwrite window was hidden... I confess: I'm a woman, blond and Swedish!
But I couldn't have maked it work without you telling me how to type the code! Thank you so much! I will probably be back here soon with silly questions! If you dont ask, you won't learn!!!
Views
Replies
Total Likes
Views
Likes
Replies