288
Views
3
Comments
Solved
TextArea set max length by variable
Question

I have a Screen (Reactive Web) with a set of Input fields. I would like to set the max. length of the input fields based on a varaible (e.g. site property) so I can change the max. length "on-the-fly" in production without a new deployement. Is this possible?

2026-02-26 06-29-24
Rahul
 
MVP
Solution

Hi,

You can set input property like maxlength and assign here variable like below image-


Hope this will helpl you.

Regards

Rahul

UserImage.jpg
Thorsten Schönbohm

thanks, works perfect :)

2021-03-18 21-03-15
Benjith Sam
 
MVP

Hi Thorsten,

For the mentioned use-case, please follow the below steps:

1) Define a site property variable i.e. TextAreaSize

2) Get the respective site property value via Screen Data Source Action

3) Set the maxlength property of the TextArea Widget

Hope this helps you!


Regards,

Benjith Sam

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.