cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Jackw
Frequent Visitor

HTML on entity form in Power Apps Portal

Hi,

 

I have a multi text field in the CDS. This field holds HTML, which internal users view with a Canvas app. We are looking into opening our system up to external users. When I view the form that has the HTML text field on it, in a portal, it shows as HTML code. Is there away to have the portal render the HTML formatting? 

5 REPLIES 5
OliverRodrigues
Super User II
Super User II

Hi, please take a look at this article: https://www.engineeredcode.com/blog/power-apps-portals-rich-text-editor-on-entity-forms

 




If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Apps Portals Super User


Oliver Rodrigues


 

Thank you for this article, but I need to display HTML formatted text for viewing. I do not need to save anything.  

Hi @Jackw you can achieve this via JS or Liquid then.

If you are rendering your page via Liquid, or if your HTML field is in the Contact entity, you can use something like this in your Web Page/Web Template (in my example I am in the Profile page):

OliverRodrigues_0-1604508697238.png

 

OliverRodrigues_1-1604508722327.png

if your HTML attribute is not in the Contact entity, you can still retrieve via Liquid if you want, or you can also use JS/jQuery:

var myHtmlvalue = $("#adx_publicprofilecopy").val();
$("#adx_publicprofilecopy_label").append(myHtmlvalue);

OliverRodrigues_2-1604508804015.png

 

 




If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Apps Portals Super User


Oliver Rodrigues


 

My HTML text is coming from a field on CDS entity form. The external user has a list of items. They click on the item they want, and that brings up the CDS entity form. This form has more details on it. One of the Fields with more details is formatted in HTML.  

OliverRodrigues
Super User II
Super User II

Hi @Jackw 

have you tried the JS code I shared in my previous answer? that should do the trick for you




If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Apps Portals Super User


Oliver Rodrigues


 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Users online (39,225)