cancel
Showing results for 
Search instead for 
Did you mean: 

Hiding Image when empty in Adobe form

sriram_ramesh
Participant
0 Kudos

Hi Gurus,

I need to hide an image field when image field is empty. (I'm passing Image in xstring from driver program).

I am able to hide the image. But it displays empty space in the place of image field. I don't need that space. What should I do?

I tried the below code seeing other SCN posts. Its showing empty space only.

if(this.rawValue ==null)

{

this.presence = "hidden";

}

Kindly help me..

Thanks in Advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Florian
Active Contributor
0 Kudos

Hi Sriram,

just go to your context and add to the parameter a condition.

If [yourxstring] is not initial.

After that your Script will work.

~Florian

sriram_ramesh
Participant
0 Kudos

Hello Florian,

I'm still getting empty space.

This empty space can be avoided by keeping the subform of the image as "FLOWED".