Hi,
I have this code and would like to insert a line return (line break) to a text.
I cumulate in a var some text and want to display one element per line like this:
<<My output if every form field is empty>>
Nom de famille trop court
Prénom trop court
Entrez une description de votre dernier poste chez IBM
Entrez l'année de départ de chez IBM
See the lines in bold. What I did, doesn't work.
Can someone has an idea on how to do it
Thank you
Pierre Lacasse
import wixLocation from 'wix-location';
$w.onReady(function () {
$w("#button1").show();
$w("#button6").hide();
$w("#vectorImage7").collapse();
$w("#vectorImage6").collapse();
$w("#vectorImage5").collapse();
$w("#vectorImage4").collapse();
});
export function button6_click_1(event, $w) {
//$w("#dynamicDataset").save();
wixLocation.to("/a-propos");
}
Hello!
I would suggest you use .html instead .text: -----> $w("#text7").html = txtErrorOut.
however it's irrelevant use the <br> tag alone, try writing the text using the right tags to match the html format.
you can also check: https://www.wix.com/code/reference/$w.Text.html#html
Massa