Skip to main content
Inspiring
May 5, 2008
Answered

carriege returns and submit buttons

  • May 5, 2008
  • 1 reply
  • 227 views
I have a form that my users would like to be able to add paragraphs into different text fields. I've seen on other forums that I need to add #replace(theformitem, chr(13)&chr(10),'<br/>','all')# . So in my udate query for these fields I've modified it to be support= '#trim(replace(form.support,chr(13)&chr(10),'<br/>','all'))#''". Within the form that particular field looks like this <input type="Text" value="#trim(workquery.support)#" name="support" size="75">

My problem is that when you are typing in the text field and hit the enter key to add a new paragraph, it responds as the submit button and sends the form. How do I disable the enter key/return key?
This topic has been closed for replies.
Correct answer wam4
I resolved it.

It can't be done using <input type= "text'...> The form has to be changed to a textarea ie <textarea name="support" cols="10" rows="3">#myvalue#</textarea>

1 reply

wam4AuthorCorrect answer
Inspiring
May 5, 2008
I resolved it.

It can't be done using <input type= "text'...> The form has to be changed to a textarea ie <textarea name="support" cols="10" rows="3">#myvalue#</textarea>