Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Modern controls Table HTML column / Date column

(1) ShareShare
ReportReport
Posted on by 69

Hello everyone,

 

I am trying out the new Table control using SharePoint as a database and the rich text column looks like this:

IonutHzd_0-1720440298480.png

 

And I can't find a  setting to convert the HTML automatically. Is that even possible currently?

 

Also on the formatting topic, I would like the dates to show up with "." instead of "/".

IonutHzd_1-1720440420373.png

 

  • IonutHzd Profile Picture
    69 on at
    Re: Modern controls Table HTML column / Date column

    @rzuber Currently I am trying to familiarize myself with the new modern controls.

    If it turns out the HTML formatting is 100% required, I will reconsider using the new controls.

     

    Thank you for the suggestion!

  • rzuber Profile Picture
    545 Super User 2025 Season 1 on at
    Re: Modern controls Table HTML column / Date column

    Might I suggest another option?

     

    I have recently been playing with the HTMLText control, and using a gallery over the top of that for selecting records.. In the gallery, I place a slider that covers the entire record. I use the column widths of the table to determine where the user clicked on the slider to determine which field they clicked on. If you need to show the HTML as it is formatted, the only way you're going to do that is with the HTMLText control. Check out the calendar component I made in this component library if you want an example of how I do this.

    Calendar Component With Automatic Holidays, Workda... - Power Platform Community (microsoft.com)

  • IonutHzd Profile Picture
    69 on at
    Re: Modern controls Table HTML column / Date column

    @rzuber The PlainText will work just fine.

    Thank you!

  • Verified answer
    rzuber Profile Picture
    545 Super User 2025 Season 1 on at
    Re: Modern controls Table HTML column / Date column

    I don't think you will be able to convert it to formatted text.. but you can remove the HTML code from it by using the PlainText() function...
    EncodeHTML, EncodeUrl, and PlainText functions - Power Platform | Microsoft Learn

     

    Note you might want to use the Substitute() function to convert some of the HTML tags to line breaks..

    Replace and Substitute functions - Power Platform | Microsoft Learn

     

    For Example:

    AddColumns(
     DataSource,
     FormattedDate,
     Text(Date, "m.d.yyyy"),
     NoHTML,
     PlainText(
     Substitute(
     HTML,
     "<br />",
     Char(10)
     )
     )
    )

     

    I hope that helps!

  • IonutHzd Profile Picture
    69 on at
    Re: Modern controls Table HTML column / Date column

    Thank you! @rzuber 

     

    That solved the issue with the Date. Could you elaborate on how to change the HTML column to formatted text?

  • rzuber Profile Picture
    545 Super User 2025 Season 1 on at
    Re: Modern controls Table HTML column / Date column

    In both cases, you are going to have to change or add columns with the format you would like to see.

     

    Check out the AddColumns function to see how you can add columns to your table.

     

    AddColumns, DropColumns, RenameColumns, and ShowColumns functions - Power Platform | Microsoft Learn

     

    For example:

    AddColumns(
     DataSource,
     FormattedDate,
     Text(Date, "m.d.yyyy")
    )

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard