Pinned topic Making Fields Conditionally Visible when a preceding field becomes active
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
I am new to LFD. I am trying to create some basic forms where fields only become visible when the preceding field is not equal to blank. e.g ENTRY FIELD2 only becomes visible when ENTRY FIELD1 is not blank. The closest I have come so far is attaching a Visible Compute to FIELD2 based on FIELD1 being focused using <visible compute="PAGE1.FIELD1.focused">on</visible> but when I click off FIELD1 FIELD2 disappears. Can anyone help. I am sure this is LFD 101 but I cant work it out
Updated on 2009-12-05T15:58:50Z at 2009-12-05T15:58:50Z by nikanos
nikanos 270002PHKB6 Posts
Re: Making Fields Conditionally Visible when a preceding field becomes active2009-12-05T15:58:50ZThis is the accepted answer. This is the accepted answer.Welcome to the forum.
The simplest way would be to set a compute on field 2.
The visibility of field 2 should be on if field 1 has a value,otherwise off.
which in code is:
Hope this helps you.