RE: Text field set to expand | Community
Skip to main content
Level 4
March 28, 2023

RE: Text field set to expand

  • March 28, 2023
  • 1 reply
  • 928 views

Good day everyone,

 

I've got a small question about expandable text field. Right now they work great, i set to "Multiple lines" and then set the box to auto expand. up to here all good.

 

And in order to see this happen, you type in a ton of txt inside the txtbox and when you click out, it expands to the right size. super!!!

The client was wondering if the auto-expand functionality could be done as they type in the text? So they type n type, and once the text reaches the box limit, it would simply expand by another row and would keep doing that until their done and leave the box.

 

Is that doable at all??

 

Thx again

 

PAtrick

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Vijay_Katoch
Community Advisor
Community Advisor
March 28, 2023

Try to call layout-ready event on field change event. 
xfa.layout.relayout() in change event 

Level 4
March 28, 2023

Tried it but i still get the arrows until i click out, then it expands to the right size.

I was just curious to see if we can expand as needed 🙂

 

 

Vijay_Katoch
Community Advisor
Community Advisor
March 29, 2023

Yes, seems like it doesn't work that way.