How to update the html type field in the widget

Naresh291
Tera Contributor

Hi ,

I have a form with a field 'description' which is of HTML type . I want to show the same piece of information(in terms of look n feel- -red , bold , underlined , hyperlinks ) in the widget . 

I have used  <div ng-bind-html="::field name"></div>   in the HTML of the widget , If the value in the 'description' field in the form is bold and in italics , then the same information is shown in the Widget .

But if the value in the description field is written with Red text and with underlined text , then the same is not displayed in the widget in the portal .

Can anyone say what am i missing .

 

Regards,

Naresh

 

 

8 REPLIES 8

Please don't use getDisplaValue() method while getting the data from field.

//app.desc = gr.description.getDisplayValue();

app = gr.description;

Hey Zaib,

If i dont use getDisplayValue() , it gives [object object]

The concern here is , i am getting the italics , bold of sentence but not when i write the text in any colour(ex:Red) , or if i underline it .

gr.getValue("field_name") 

it will give the value instead of object.