cancel
Showing results for 
Search instead for 
Did you mean: 

Can I color a line of "standard text" in adobe forms output?

olivier_muff
Explorer
0 Kudos

Simple question: Can I color a line of "standard text" in adobe forms output?

My standard text (SO10) has multiple lines.

Can I make one of the lines red?

Ollie

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Oliver,

I Never done this earlier, but I will put fuzzy logic and put color to the 1st line.

Let me know, if you need the approach.

Cheers,

sai

olivier_muff
Explorer
0 Kudos

Yes, send approach. I do not know how you would approach this with Fuzzy Logic. Thank you.

Former Member
0 Kudos

Hi Oliver,

I believe you standard text is a table type of TDLINES.

On the form you would display it with a table of 1 column 1 row with repeat row ticked.

Have the like below code on the fomr ready event of your table.


for(var i =0; i<this.Row1.nodes.length;i++)
	if(i == 1){
	this.Row1.Cell1.font.fill.color.value = "255,0,0";
	this.Row1.xx.font.fill.color.value = "255,0,0";
	}

Note: in my example I had a table with one row names Row1 and 2 fields cell1 type textbox, & xx as text / label.

If its like you have it in a text box with multiple entries, we need to spli the value such that 1st row is displayed in a text box whose parameters are by defeult set to font red, and rest of them to this text area.

If your procedure is table the code sud work, else let me know how you get data and how do you display it on the screen.

Cheers,

Sai