Set maxTextLength TextBox with Code

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

Hello,

I want to set max text length with code because when the textbox invisible, the property in the visualizer maxTextLength is not applied.

thanks,

Hi,

As per documentation, the maxTextLength property has read and write access. It means you can set the maxTextLength for the textbox at run time.

http://docs.kony.com/konylibrary/visualizer/viz_widget_prog_guide/Default.htm#TextBox_Properties.htm#maxTextL%3FTocPath%3DReference%7CTextBox2%2520Widget%7CProperties%7C_____30

Please let me know, what exactly happening when set the maxTextLength property to textbox at run time.