cancel
Showing results for 
Search instead for 
Did you mean: 

Change field position based on the height of another element

Former Member
0 Kudos

Hi

I'm trying to decide the vertical position of a field as per the height of another field (an image)

Here's my code in formcalc written in the event iniitalize


this.y = Sum(0.5 , data.Page1.image.h)

But it faisl to read the value of the height of the image element.

What could be wrong?

Pushpraj

Accepted Solutions (1)

Accepted Solutions (1)

OttoGold
Active Contributor
0 Kudos

First, I would work with some variables. That will let you handle one value after the other.

I would test every value (if it is coming ok - no syntax errors, the right field is touched etc.) with a message box.

Then you will find the error/ weak point of your code.

Regards Otto

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi people

Any ideas?

Thanks

Pushpraj