Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

carriege returns and submit buttons

Participant ,
May 05, 2008 May 05, 2008
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?
TOPICS
Getting started
202
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , May 05, 2008 May 05, 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>
Translate
Participant ,
May 05, 2008 May 05, 2008
LATEST
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>
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources