Skip to Content

Hiding a Static Text and corresponding Text fields in Adobe forms based on condition

Hello Gurus,

Am new to Adobe forms. I have developed an invoice form for my client and which was working correctly but the client came up with new requirement that to hide some static texts and corresponding text fields at line item level of the table based on condition. In the table we have the columns, QTY, MATERIAL, DESCRIPTION, SUPPLIER, BATCH, PRICE. In DESCRIPTION column we have 7 to 8 static texts and corresponding text fields. If item category of the line item is 'ZXC' then I need to hide the Manufacturing Date and Expiry Date and their text fields from the column DESCRIPTION. If item categoy is other than ZXC then I need to display in the form. Please guide me on this how to acheive.

Thanks and Regards,

Muralikrishna Peravali.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 19, 2017 at 12:22 PM

    Hi!

    For this you can use a script at the level form:ready

    if(ITEM_CAT == "ZXC"){      
    this.presence = "hidden"     //your text field
    LIST.head1.text1 = "hidden"  //its standard text
    }
    

    E. Gubenko

    Add comment
    10|10000 characters needed characters exceeded

    • Hi!

      You should check properly the names of your elements (you can choose an element from layout by holding Ctrl and pressing mouse left button to the field), and also you should check your syntax. As I see you have two errors:

      1) there should be only one equality sign, when you are setting the value to presence

      2) you should not leave dots at the end of the expressions

      Hope it will be helpful