Does anybody know how to make text wrap inside a form’s text field? It needs to be an input element rather than a text area as I need to pre-populate the field (and currently I only know how to do that with an input element!)
Currently the text is running off out of view horizontally. I have tried messing with the break points but nothing seems to do it.
Thanks so much for the reply. I’ve had a fiddle and I’m still head scratching (I should probably add I’m fairly new to webflow!) Below is the script & method i used to attach the cms to the form input field. it works like a charm but doesn’t seem to ‘bind’ when used for a text field? Any other pointers you have would be much appreciated :)
I’m the author of SA5, and I hadn’t actually noticed this before.
The library you’re using sets the attribute of the element and for INPUT elements, that will initialize the current value.
TEXTAREA elements behave a bit differently. If the value is set at page load, it will initialize, but if you set it with script after the page loads ( like here ), it does not recognize it and will not initialize.
That might be a browser bug, at least in Chromium, however it’s a use case that makes sense, so I’ve decided to make a special case here. When you try to initialize the value attribute of a textarea element, it will now initialize the value property as well.
I’ve just released an update, change your library version and you should be good.