How to update the html type field in the widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2020 04:32 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2020 05:43 AM
Please don't use getDisplaValue() method while getting the data from field.
//app.desc = gr.description.getDisplayValue();
app = gr.description;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2020 05:59 AM
Hey Zaib,
If i dont use getDisplayValue() , it gives [object object]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2020 06:01 AM
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 .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2020 06:21 AM
gr.getValue("field_name")
it will give the value instead of object.