I have a work around solution to this annoying problem, which seems very reliable, and will work for you if you can change your text fields to HTML (with tags for p1, p2, h2 etc for desired styles and
for return carriages). In the most simplest of cases you would just need to decide which Wix style you want for the chunk of text eg) p1, p2 or whatever, and put
where you would like the new lines to occur.
So the HTML would be
blah blah blah
blah blah blah
blah blah blah
After implementing the solution as explained below, this would show as
blah blah blah
blah blah blah
blah blah blah
In the style of p1.
So then, rather than using Text, you can instead store this formatted HTML inside a text field in your collection (the field type for this MUST be text not rich text).
Then, in order to get this displayed correctly on the dynamic page as per above, you simply insert this HTML into the relevant element on the page (which doesn’t even need to be connected to any data), using wix code and the following method. You will have to adapt to your field names and dataset obviously.
Here is my code (NB: jobSummary, companyDescription, reviews, personSpecification are the field keys where the HTML is stored.)
$w(" #dynamicDataset “).onReady( () => {
let jshtml= $w(” #dynamicDataset “).getCurrentItem().jobSummary;
let cdhtml= $w(” #dynamicDataset “).getCurrentItem().companyDescription;
let rvhtml= $w(” #dynamicDataset “).getCurrentItem().reviews;
let pshtml= $w(” #dynamicDataset ").getCurrentItem().personSpecification;
$w(’ #text10 ‘).html = jshtml;
$w(’ #text18 ‘).html = cdhtml;
$w(’ #text31 ‘).html = rvhtml;
$w(’ #text19 ').html = pshtml;
} );
});
The .html reference is here:- https://www.wix.com/code/reference/$w.Text.html#html
Providing you have all the p1, p2 etc tags in place then your text will appear exactly as the default p1, p2 etc styles which are set up in your wix site, and the
tags will create new lines where desired.