In the Form Designer,
-
Click the icon (Form Configuration).
-
Click Web References.
-
Check the option
Include jQuery API and jQuery UI libraries
-
Add the following code:
<script>
$(function() {
// changes mouse cursor when highlighting lower right of box
$(document).on('mousemove', 'textarea', function(e) {
var a = $(this).offset().top + $(this).outerHeight() - 16, // top border of bottom-right-corner-box area
b = $(this).offset().left + $(this).outerWidth() - 16; // left border of bottom-right-corner-box area
$(this).css({
cursor: e.pageY > a && e.pageX > b ? 'nw-resize' : ''
});
})
// the following simple make the textbox "Auto-Expand" as it is typed in
.on('keyup', 'textarea', function(e) {
// the following will help the text expand as typing takes place
while($(this).outerHeight() < this.scrollHeight + parseFloat($(this).css("borderTopWidth")) + parseFloat($(this).css("borderBottomWidth"))) {
$(this).height($(this).height()+1);
};
});
});
</script>
4. Click Ok to close the pop up, then Save the form and test it out!