Stop user from taking a new line when entering text in a text box

  • breandanmccann
    Asked on October 23, 2020 at 5:00 AM

    Hi,

    How do i Stop a user from taking a new line when entering text in a text box.

    Is it something to do with the css code? Im not very familiar with this.

    Any help would be appreciated.

    Thanks

  • Kiran Support Team Lead
    Replied on October 23, 2020 at 8:26 AM

    I am not sure if I understand your query correctly. As I check your JotForm, the text in the fields seems to be displaying normally.

    1603455886 5f92cb8e8c819  Screenshot 10

    Were you able to fix the issue? If you are still experiencing any issue with the form, please let us know and provide us with a screenshot of the issue so that we can check to assist you.

    Thanks!


  • breandanmccann
    Replied on October 28, 2020 at 6:28 AM
    Hi,
    Sorry maybe I didn’t explain well enough.
    This form when complete will be sent to an email where the data is pulled out.
    When pulling data from the ‘describe the problem’ textbox it works as long as the user does not manually insert a new line into the box.
    If the user writes a large amount of text into the text box and JotForm auto takes a new line that is fine I will still work.
    To summarise I need to stop the user from manually creating a new line when filling out text in the ‘describe the problem’ textbox
    Kind Regards,
    Breandan McCann
    T. +44 (0) 2887723444 Ext. 199
    Mallaghan (Head Office)
    69 Coalisland Road, Dungannon, County Tyrone, N.Ireland. BT71 6LA
    Website: http://www.mallaghangroup.com/
    ...
  • jonathan
    Replied on October 28, 2020 at 7:34 AM

    To summarise I need to stop the user from manually creating a new line when filling out text in the ‘describe the problem’ textbox

    Currently it is not possible to prevent the user from manually creating a new line because there is no existing scripts or functionality within the form that will prevent or filter the input in the Multiple Entry field (TextArea).

    This form when complete will be sent to an email where the data is pulled out.

    When pulling data from the ‘describe the problem’ textbox it works as long as the user does not manually insert a new line into the box.

    From what I understand a better method is to trim the data pulled on your side instead. Since you are importing the data (base on what I understand on "pulling the data"), you can apply first a script/filter that will trim the unnecessary data/characters before you finally transfer the data to your side (app maybe).

    Alternatively, what you can do also is to use a different field as the source of the pulled data. Example, you can add a hidden Textbox field -- use this hidden field as the repository for the copy of the data from the TextArea field (‘describe the problem’)

    You can use the Calculation/Condition feature to update and copy the data from the TextArea field to the hidden field described.

    Guide : How to Insert Text or Calculation into a Field Using Conditional Logic

    I hope this help. Let us know if you need further assistance.