Hi,
I have used Textarea input field. I want to first 5 lines for expanded the input field then after I want to set the scroll that inputfleld.If any possible?
Thanks,
Jeyasri
Hi JEYASRI R,
The input field will show a vertical bar when the content provided exceeds the visible area.
In case you need an horizontal one, you need to add a class containing these properties:
Regards,
Marco Arede wrote:
Hi macro,I am using javascript for expanded text area
var textarea = document.getElementById($parameters.In1);var heightLimit = 500; /* Maximum height: 500px */textarea.oninput = function() { textarea.style.height = ""; /* Reset the height*/ textarea.style.height = Math.min(textarea.scrollHeight, heightLimit) + "px";};
I need When the user insert the input filed first 5 lines of expanded , When the user insert the 6th line I want to set the scroll in that input field.Like a whatsapp chat input field, If any possible
Hi JEYASRI R ,
Can you provide an illustration, to better understand this?
Like this link : https://stackoverflow.com/questions/4954252/css-textarea-that-expands-as-you-type-text
I have a Textarea where users can input text. if users insert a large amount of text, I want the text area to expand accordingly. So I am using the below javascript
Now I want to fix the height to expanded textarea, Then after enabling scroll in that input field
Now I got what you meant, and it seems the solution is described there. Means you only need to add to the input widget properties the following one:
Good luck!