Form designer: Textarea tool: autoresize: automatically adjust textarea height

You can use a JavaScript plugin to automatically adjust a textarea height. To do this:

  1. Download the JavaScript plugin at [http://www.jacklmoore.com/autosize/](http://www.jacklmoore.com/autosize/).
  2. Copy the "autosize.min.js" file into the corresponding WorkflowGen server folder: \inetpub\wwwroot\wfgen\WfApps\WebForms\js.
  3. On the Web References tab in the Form configuration panel, check Include jQuery API and jQuery UI libraries, then add the following JavaScript code (for a textarea with the "REQUEST_DESCRIPTION" as the full ID):
  4. <script type="text/javascript"src="/wfgen/wfapps/webforms/js/autosize.min.js"></script> 
    <script> 
     $(document).ready(function() { 
     // Code executed in Runtime only 
     if (typeof $selectedObject === "undefined"){ 
      autosize($('#REQUEST_DESCRIPTION')); 
      } 
     }); 
    </script>