Expand my Community achievements bar.

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

Former Community Member

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)