cancel
Showing results for 
Search instead for 
Did you mean: 

Resetting default value for Calulated-User Can Override field

Former Member
0 Kudos

Hi,

In my adobe form there are two fields(say F1 and F2, decimal fields) which are in display mode.

They hold some default value from backened using HCM process.

For example now F1 = 14.54 and F2 = 0.0

There is one more field(say F3) which is of type Calculated-User Can Override.

F3 holds value of (F1-F2) so F3 = 14.54.

Now there is one reset button which should reset F3 value to its defalut value 14.54 once pushed.

Say now if I modify F3 value to 15.00 and reset button is pushed, F3 should be now 14.54.

What I have done now, in the calculate* event of reset button I have put the script like this

F3.rawValue = F1.rawValue - F2.rawValue;

I am able to see the value 14.54 in F3 for the first time but after modifying it to 15.00 and pushing the reset button, F3 doesn't hold 14.54. its still 15.00.

Please help, how to do this.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

F3.rawValue = F1.rawValue - F2.rawVaalue

Store the F3 value in temp variable,

var temp = F3.rawValue

when click the reset button, assign the temp value to F3

F3.rawValue = temp.

this way will get the previous value.

By

Parthi