Sorry if this is common knowledge, but how can I reference the value of a variable created in one field from another field?
For example field "subTotal" contains a variable called rSubTotal
A function inside another field ("total") wants to call the current value of rSubTotal.
How can I achieve this in LiveCycle Designer?
Thank you and have a wonderfuld day,
Brandon Boswell
Solved! Go to Solution.
Views
Replies
Total Likes
You can cast it as on Int/Float by using parseInt or parseFloat when you use it. Unfortunately those vars are strings only.
Paul
Views
Replies
Total Likes
The scope of the variable is only for the duration of the script. You coudl write the result of the var to a hidden field and then reference the hidden field.
Paul
Is there anyway to pass the variable without the hidden field?
Views
Replies
Total Likes
You can create a gloabal variable in the Form Properties (under variables). Remember to get the value of that var you will need to access the value property not the rawValue property.
Paul
Views
Replies
Total Likes
I tried using global variables, but always recieved errors because Global Variables are of the type "string" and not integers. Is there a way to create a global variable that is an integer.
Views
Replies
Total Likes
You can cast it as on Int/Float by using parseInt or parseFloat when you use it. Unfortunately those vars are strings only.
Paul
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies