Hi @jw83876 standard way to set basic textarea
dimension is to add rows
and/or cols
attribute. WF doesn’t for some reason allow add this attribute in their attribute field and give us warning that rows
is reserved word.
But you can simply do that with JS setAttribute
.
- grab your
textarea
element - assign custom attribute
- prevent textarea resizing functionality (Optional)
<script>
const textArea = document.querySelector(".your_textarea_class")
// OR => const textArea = document.querySelector("#your_textarea_id")
textArea.setAttribute("rows", 20)
</script>
<style>
<!-- when using class selector -->
.your_textarea_class{
resize: none;
}
<style>
just use one of possible ways to form your text area that suit to your project. both are valid