Topic
1 reply Latest Post - ‏2009-12-05T15:58:50Z by nikanos
SystemAdmin
SystemAdmin
1860 Posts
ACCEPTED ANSWER

Pinned topic Making Fields Conditionally Visible when a preceding field becomes active

‏2009-12-04T14:41:06Z |
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
    nikanos
    6 Posts
    ACCEPTED ANSWER

    Re: Making Fields Conditionally Visible when a preceding field becomes active

    ‏2009-12-05T15:58:50Z  in response to SystemAdmin
    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:
    <visible compute="PAGE1.FIELD1.value==''?'off':'on'">on</visible>
    Hope this helps you.