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 / Calling PowerFX functi...
Power Apps
Unanswered

Calling PowerFX functions from HTMLText hyperlink

(0) ShareShare
ReportReport
Posted on by 41

We want to create a hyperlink in our CanvasApps that directs the user "Back" by calling the PowerFX Back() function but I cannnot find a way to do this.

I'm aware that I can call window.history.back() in a PCF but that's a browser-wide back, which will take the user out of the CanvasApp.

Right now we've coded it as a label with an onSelect but with the limitations we're unable to make it look like a hyperlink including the hover and mouse cursor. It also does not work the same way with Screen Readers as a regular hyperlink would, as screenreaders see them as buttons rather than links.

Ideally what i'd like is a way to interface with PowerFX in some way, eg.

HtmlText.Text = "<a href='App.Back()'>Go Back</a>"


Alternatively, is there is a way to call PowerFX functions from my PCF (perhaps via the context object) then that would also sort my issue.

Does anyone have any ideas?

 

Thanks.

Categories:
I have the same question (0)
  • Gorilla_8 Profile Picture
    on at

    Hi
    @MCrawley2 

     

    Do you wanna put the Back(), on your HTMLTEXT? 

    So try this: 

    HtmlText.Text = "<a href= " & App.Back() & ">Go Back</a>"
  • MCrawley2 Profile Picture
    41 on at

    Unfortunately this is invalid syntax.

  • Gorilla_8 Profile Picture
    on at

    @MCrawley2 

     

    Try this, on "OnSelect", put this code:

     

    HtmlText.Text = "<a href= " & Back() & ">Go Back</a>"

     

  • MCrawley2 Profile Picture
    41 on at

    Have you tested these suggestions? They're clearly wrong just from eyeballing them.

    In your previous example you've suggested changing the text of the HTMLText on click of the HTMLText.

    This isn't what I'm after and also wouldn't work because Back() doesn't return a type of string.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 379 Most Valuable Professional

#2
11manish Profile Picture

11manish 203 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard