Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Expand field

Avatar

Level 7

I have a text field and a button beside each other (same line)

Is it possible when I click the button to achive two things:

1. Button becomes hidden

2. text field expands (to the right) all the way to the right margin

Thanks for your help

1 Reply

Avatar

Level 4

Hi mmgiath,

Greetings .

Assuming that the button and text field are placed in a single subform, You can add the following piece of code on the click event of the button:

this.presence = "hidden"; 

 

this.parent.textField.w = "7in";

( Here i assumed that the width 7in will make to textfield fit till your right margin)