How to do a
in the validation message errors?

How to do a
in the validation message errors?

  

Hello everyone

I had several custom validations, where i put a feed back message in the end.

The thing is i wanted to put all the messages seperated on each line has the exemple below

"You must complete the input <BR>

Please select the... <BR>

Select a number.."


So it has this effect instead of a block of text with all messages.

I was using sumething like this " 


-ErrorMessage= ErrorMessage+ "<br>" + "Message i want to write".


But the Break does not work. Any solutions?

Hi Nuno,

Did you tried this, In expression properties, Set "Escape content" to No

You have a function called Newline() for that

I tryed using the Newline() function but it didn't work, maybe i am applying it wrong?

ErrorMessage= ErrorMessage+Newline()+ "New message to write..." ?

Nuno Raposo wrote:

I tryed using the Newline() function but it didn't work, maybe i am applying it wrong?

hum. What you have now in the expression?


Hello Nuno,

I've being using "<br>" without problems.
The form:

message = message + "<br>" + "My Message"

works without problem, both in a "Web Application" as well as in a "SilkUI" application (OutSystems 10).

I'm sending an example so you can test and take a look (Attached).
https://eduardojauch.outsystemscloud.com/MessageTest/Home.aspx?_ts=636414364899957970

What version are you working on?

Cheers,
Eduardo Jauch

Hey Eduardo

That didn't work for me.

I used this and it worked


ErrorMessage=ErrorMessage + Newline() + "<BR/>  My Message"


I still don't know why, but your method should work too, but unfortunantly it didn't for me. Thing's working now at least. :)

Thank you


Eduardo Jauch wrote:

Hello Nuno,

I've being using "<br>" without problems.
The form:

message = message + "<br>" + "My Message"

works without problem, both in a "Web Application" as well as in a "SilkUI" application (OutSystems 10).

I'm sending an example so you can test and take a look (Attached).
https://eduardojauch.outsystemscloud.com/MessageTest/Home.aspx?_ts=636414364899957970

What version are you working on?

Cheers,
Eduardo Jauch


I'm using OS10.

Nuno Raposo wrote:

Hey Eduardo

That didn't work for me.

I used this and it worked


ErrorMessage=ErrorMessage + Newline() + "<BR/>  My Message"


I still don't know why, but your method should work too, but unfortunantly it didn't for me. Thing's working now at least. :)

Thank you


Hi,


I didn't get it. It is working or it is not? (NewLine() didn't work for me either).
Which theme are you using?

Can you test the OML I sent you? It works or not?

Cheers,
Eduardo Jauch


Eduardo Jauch wrote:

Hello Nuno,

I've being using "<br>" without problems.
The form:

message = message + "<br>" + "My Message"

works without problem, both in a "Web Application" as well as in a "SilkUI" application (OutSystems 10).

I'm sending an example so you can test and take a look (Attached).
https://eduardojauch.outsystemscloud.com/MessageTest/Home.aspx?_ts=636414364899957970

What version are you working on?

Cheers,
Eduardo Jauch

This is working fine for me on London theme


Hi Nuno,

Is your problem solved with above solution?

Hello All


The (ErrorMessage=ErrorMessage + Newline() + "<BR/>  My Message") solution did work. Strange it didn't work for you either.

I'm gonna test your oml and i'll give you a quick feedback.

Cheers