cancel
Showing results for 
Search instead for 
Did you mean: 

Removing the values of a floating fields

Former Member
0 Kudos

Hi,

I have a text UI library element and inside this there is 4 floating fields. I have to control the visibility of one of the floating field based a variable value.

I have tried this by scripting, on the varible. But it is still visible. reason may be because the floating field already have a presence as Hidden.

How can i achieve this, Please suggest.

Accepted Solutions (0)

Answers (1)

Answers (1)

OttoGold
Active Contributor
0 Kudos

Hello,

I am not sure if I understand, do you want to:

1) have two variants of the text, one with 4 variables and one with 3 variables? (where the source fields are hidden and used only for bindning of the backend values to get there into the static text)

2) any other problem?

If I understand, the only way this can be done (only one I know, maybe somebody can correct me and describe the proper solution) is to have two variants of the static text (of course both using the same "source fields") and based on a condition show first or the second. I am not aware of any "smart" manipulation the floating fields.

Regards Otto

Former Member
0 Kudos

Hi,

Thanks for the reply. What i am getting from your answer is:

Have two TEXT library elements at the same position, one having 3 floating fields and in second 4 floating fileds, and make them visible or invisible as per my requirement.

As i think it can be achieved with this. But any body having idea whether with only one TEXT element it can be achieved.

My means control the visibility of the floating field.?

Former Member
0 Kudos

hi Pankaj,

Try the below script. Write this formcalc script in the initialization event of your 4th floating field. I am assuming that flag is the variable that you want to check.

if ( $record.FLAG eq "X" ) then

this.presence = "visible"

else

this.presence = "invisible"

endif

Please note that the variable name (in if condition) is case sensitive and also choose the scipting language as formcalc.

Regards,

Devaiah

OttoGold
Active Contributor
0 Kudos

You got me right. Now we can wait if any other suggestion will appear. In fact not many people know about the floating fields, in my opinion. I have found the feature after two years of experience:)) Otto