Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Run Code once on form load

$
0
0

Hi Guys,

 

I have a text field (TextField1)  that populates with a value (1-100)

 

On initial load of the form this value will be the highest.

 

As the user navigates around the form this number will change (lower than the initial load)

 

I have another text field (TextField2) on the form which I want to hold the initial value at load of the form.

 

something like: TextField2.rawValue = TextField1.rawValue

 

But whichever event I put it in it always updates TextField2 with the value in TextField1 (it does not only run the code once on form load)

 

Can anyone advise how I can achieve this?

 

 

If the form loads with the number 70 as a value in TextField1 - TextField2 has 70 as a value and keeps that value regardless of what TextField1 changes to..

 

Many thanks for any help

 


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>