Skip to main content
Nintex Community Menu Bar

Custom Control Text Area that has Maximum Characters Per Line

  • May 3, 2019
  • 1 reply
  • 8 views

Hi

 

I have a requirement that requires a text area to allow only 35 characters per line. The maximum number of lines is also not to exceed 50.

 

Are there any custom controls available to do this OR Javascript/Regex?

1 reply

  • May 3, 2019

Hi K2 Dev;

 

I think this can quickly be achieved using the width=35% , and height<50% for e.g as follows:-

<script type="text/javascript">$(document).ready(function(){      $("#textAreaId").width(35);
});
</script>

 Also see this content:-

https://community.k2.com/t5/K2-blackpearl-Articles/Dynamic-increase-height-of-Text-Area-control/ta-p/91051

 

regards;

widson.