web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Is there a way to enca...
Power Apps
Answered

Is there a way to encapsulate functions in a text control?

(0) ShareShare
ReportReport
Posted on by 17

I am creating a Canvas App that is an Example of how to use features of Canvas Apps. I want to display the text of the function on a screen so that it can read or even used for copy-n-paste. However, when I enter a function in a text control, even though the function is between quotation marks, it is treated as a function and generates an error. Is there a way to encapsulate functions so they are treated as text? A way to add function text to a screen so the text can be read?  The only alternative I can think of is to use a picture of the text. 

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Gergman 

    As long as it is enclosed in double quote marks, it will display what you want.  It will not interpret the formula as a formula, it will interpret it as a text string.  Make sure you have your quotes right.

     

    Text :  "Filter(myDataSource, ID=3)"  will show as just that.

     

    I hope this is helpful for you.

  • Gergman Profile Picture
    17 on at

    Thank you 

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 474

#1
Valantis Profile Picture

Valantis 474

#3
WarrenBelz Profile Picture

WarrenBelz 375 Most Valuable Professional

Last 30 days Overall leaderboard