Home Forum Blog Market Events Resources
Showing results for 
Search instead for 
Do you mean 
Highlighted
Occasional Contributor
Posts: 5
Registered: ‎05-31-2017

Add a block of text to a view

In K2 Designer (K2 Five) how do I add a simple block of custom text to the layout? I have built a form but need a place to add a couple paragraphs of html text in with the controls. In the view designer, I tried adding a "label" from the toolbox, and that works great if I only need to add a couple words, but it is not sufficient for html text; I can't type directly into the cell, and I do not see any other tools that will allow me to do this. Any ideas?

Moderator
Posts: 129
Registered: ‎07-12-2015

Re: Add a block of text to a view

[ Edited ]

Hello,

 

There is a character limit of 255 on the Text data type. As a workaround, you may use a Data Label control instead, change the Data Type from Text to Memo, add a ‘Transfer Data’ action rule and input your desired html text in the data label field within the rule configuration.

 

Hope this helps. 

Occasional Contributor
Posts: 5
Registered: ‎05-31-2017

Re: Add a block of text to a view

Hi Ikimberly, I'm not talking about a control or input field. I'm talking about paragraph text displayed on the form in

 

Say, for example, I need to add a lengthy set of instructions at the top of the form (using html p, ul, li, a tags).

 

I don't see anything that allows me to add that text onto the form.

Moderator
Posts: 129
Registered: ‎07-12-2015

Re: Add a block of text to a view

Hi bmorgan,

 

There is a HTML literal control available for download from our K2 Community Market here:-

http://community.k2.com/t5/K2-blackpearl/HTML-Literal/ba-p/80400

 

Once installed, drag the control into the Design canvas, and you can use it to display your own HTML content on the Form. 

Moderator
Moderator
Posts: 884
Registered: ‎05-08-2012

Re: Add a block of text to a view

[ Edited ]

This may also be possible using Data Label control, with the 'Literal' Property bound to an Expression that has your HTML <div>, <p>, <ul> tags and text.

 

K2 will not accept any liability for any issues arising from actions taken in respect of the information provided by any forum member.