Expand my Community achievements bar.

change field's layout by selecting DropDownBox value

Avatar

Level 5

Hi All.

I would like select according value in DropDownBox change layout of a field. For instance, TextField1 has layout parameter X=1in and Y=2in. When I selecte value "Move" in DropDownBox I would like dynamically change layout parameter to X=2in and Y=4in. How it to do?

Thanks.

2 Replies

Avatar

Level 2

The x and y coordinates can be accessed as:

TextField.x and TextField.y

So to be able to move the textfield you should use the below script in the Exit event of the dropdown:

if(this.rawValue=="Move")

{

     TextField.x="2.0in";

     TextField.y="4.0in";

}