133
Views
4
Comments
How to get an input widget to change its size dynamically in the application
Question

For instance, there is a screen where I have placed an 'input widget' with text line property as 1 but the 'max length' property is 8000 and I want the functionality of the input widget to be something like, if I am entering 4000 characters then instead of getting a scroll bar in the input field, i get the wole display of characters in multiple lines.

like in the snapshot, I want the widget to display the whole set of characters instead of a scroll bar and if it is empty then the size should be 1(text line property). Is it possible, if yes then how?



Rank: #204

Poorva Singh wrote:

For instance, there is a screen where I have placed an 'input widget' with text line property as 1 but the 'max length' property is 8000 and I want the functionality of the input widget to be something like, if I am entering 4000 characters then instead of getting a scroll bar in the input field, i get the wole display of characters in multiple lines.

like in the snapshot, I want the widget to display the whole set of characters instead of a scroll bar and if it is empty then the size should be 1(text line property). Is it possible, if yes then how?



Did you try this forge component: https://www.outsystems.com/forge/component-overview/2133/text-area-auto-resizer

sample here

Use this component to automatically resize a textarea while the user types

Best regards

Carlos Lessa


Rank: #338

Poorva Singh wrote:

For instance, there is a screen where I have placed an 'input widget' with text line property as 1 but the 'max length' property is 8000 and I want the functionality of the input widget to be something like, if I am entering 4000 characters then instead of getting a scroll bar in the input field, i get the wole display of characters in multiple lines.

like in the snapshot, I want the widget to display the whole set of characters instead of a scroll bar and if it is empty then the size should be 1(text line property). Is it possible, if yes then how?



 Hi Poorva,


Please check this component .

https://www.outsystems.com/forge/component-overview/8817/autogrowtextarea-oml 

Hope this helps


Thanks

AD 

 

Rank: #56877

Hi Team, 

I want to store user information on database and show those data based on created by user