Expand my Community achievements bar.

How to set Text Field 2 based upon contents of Text Field 1

Avatar

Former Community Member
How do I do this please in Formcalc...



I enter a code e.g 'ABC' or 'XYZ' into Text Field 1.



Via an IF statement I need to populate Text Field 2 based upon the contents of Text Field 1 (and not use a button).



e.g If Text Field 1 = 'ABC' then Text Field 2 = 'ABCABCABCABC'

If Text Field 2 = 'XYZ' then Text Field 2 = "XYZXYZXYZ'



Where does the IF statement go? And on what sort of Event?



PS I am using LiveCycle Designer 8 but I am sure the answer will be suitable for all versions.
1 Reply

Avatar

Former Community Member
I added my IF statement on TextField2 with a Calculate Event.



Sounds obvious and this is what I already had before my post. However, and for whatever reason, I had to delete my TextField1 and re-add it. Thereafter, all was OK.