When edit database, how create new line.

I use original form with wixcode. When use the form and write text I can create new line

like this

1 line texttexttexttext
2 line texttexttexttext

But when edtit database,

1 line texttexttexttext2 line texttexttexttext

How Can I create new line in database?

Do you want to store content with line breaks in data collections? The html way
or escape \n

Thank you Andreas!

When use Fieldtype “text”, The custom form can create new line.
but the database can not use
or escape \n

When use Field type “rich text”, The custom form can not create new line.

I want create new line each custom form & database.

Hi,
I’m not sure that I fully understand what you were referring. Do you wish to see the line breaks on the collection as well? Can you please clarify and send us some screenshots?

Thanks,
Tal.

I use custom form
write text red square place

When I wrote like this

Displayed when use Fieldtype"Text"

Displayed when use Fieldtype"RichText"

I need display like a FieldType"text"version
But When edit database, Its change to no new lines

Rich text is to display text. I recommend checking out this article to have a Rich Text Editor on your page.

Hi Tal, I have essentially the same query as the OP; I think OP is saying that when a user saves something to the database using a text box input, they’re able to save it with line breaks (which is shown when you connect a text element to read from the collection), but OP can’t find a way to recreate this directly in the database by using either
or \n.

I want to be able to format collection entries of the text type to include line breaks too (using a data hook to make a list of other fields). Is there a way around this?

Thanks,
Amy

ah I can use \n in the JavaScript! all good :slight_smile:

if there is a way to do it directly in the collectio, it would still be great to know though. Thanks!