cancel
Showing results for 
Search instead for 
Did you mean: 

Hide Text Elements in Adobe Forms

Former Member
0 Kudos

Hi,

I have two text elements for same id and different languages. Both of these may have values. I need to hide 2nd text element if there is a value in the 1st. In case there is no value in the 1st, I want the 2nd to be printed.

I searched the SDN and tried all the given solns, but could not get the desired result.

Please help.

Regards

Jaspreet

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hmmm.. can you post your code? hiding an element based on some value is very common

Former Member
0 Kudos

Hi Robert,

The formcalc code is as below:

data.#pageSet[0].Page1.TERMSLINK_CLAUSE.GT_CLAUSE.DATA.TEXT1::ready:form - (FormCalc, client)

if (data.#pageSet[0].Page1.TERMSLINK_CLAUSE.GT_CLAUSE.DATA.Text.rawValue ne " ") then

data.#pageSet[0].Page1.TERMSLINK_CLAUSE.GT_CLAUSE.DATA.TEXT1.presence = "hidden"

endif

Thanks

Jaspreet

AntonPierhagen
Active Participant
0 Kudos

You could try to change the 'NE' into '!=' ?

Former Member
0 Kudos

you don't always have to fully quailfy your field. When you place the code under the field you can use:


if ( Text.rawValue ne " ") then
  TEXT1.presence = "hidden"
endif

did you mean to check field TEXT but are trying to hide field TEXT1?

EQ / NE should work fine.