shared text does not support new line?

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

shared text does not support new line?

#1

Postby xren » Wed Aug 10, 2016 2:08 pm

Hi,

I am trying to use shared text to manage an error message.

defined a text with id DateErrorMsg in shared texts file and assigned value there, included the shared texts file in related forms, created text control on forms and assign the DateErrorMsg text to these text controls on forms from script.

However, I cannot make multiple line for the text even I choose contain HTML for DateErrorMsg and/or Contain HTML on the text controls. with <br> in the DateErrorMsg.

and tried /n/r, &#13, etc.

How to make it show multiple lines new line?

Thanks for help.
Xiaoli
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Wed Aug 10, 2016 4:14 pm

<br> works fine for me with the Contains HTML checkbox ticked.
0 x

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

#3

Postby xren » Thu Aug 11, 2016 3:44 pm

not working for me for some reason.

Can you think about what the reason can be?

Thanks,
Xiaoli
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#4

Postby Jon » Fri Aug 12, 2016 8:07 am

If you can't figure it out, you could export the form together with all related files and send it to support.

For info, you can display an error message from a text using:

Code: Select all

event.owner.addErrorMessageText&#40;texts.DateErrorMsg&#41;;
Then you don't have to look after hiding/showing text controls. If you want to position the message somewhere else on a page, you can add a MessageControl then add the message to this:

Code: Select all

controls.myMsgCtrl.addErrorMessageText&#40;texts.DateErrorMsg&#41;;
You probably know this already.
0 x


Who is online

Users browsing this forum: Bing [Bot] and 14 guests