This is a migrated thread and some comments may be shown as answers.

Adding NewLine to a textbox

1 Answer 385 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 08 Jan 2018, 08:37 PM

Could someone please help.  I am trying to understand how to code a conditional IIF() clause with a new line. 

My goal is the following:

mfgTitle

Bob

Smith

 

Here is what I have tried

First:  I have tried using an htmlTextBox and using the conditional expression within it.  This caused the htmlTextBox to throw an error over the </br>

IIF(value <> 1, {Fields.mfgTitle} <br/> {Fields.FirstName}<br/>{Fields.LastName}, {Fields.FirstName}<br/>{Fields.LastName})

Also I tried  the following

IIF(value<> 1, {Fields.mfgTitle} + "\r\n" + {Fields.FirstName} + "\r\n" + {Fields.LastName}, {Fields.FirstName} + "\r\n" + {Fields.LastName})

 

Any Help would be greatly appreciated.

 

Thank You

1 Answer, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 08 Jan 2018, 10:47 PM

Note:  I would like to add that this report is bound via a Enumerable that is used to load an ObjectDatasource of a table type.  That being said, I am trying to populate the textbox via the 'Expression Editor'.

Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Share this question
or