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

Community site session details

Session Id : yQCuoJPfVzAeH1yq6Jb8+6
Power Apps - Building Power Apps
Answered

Can I Set a Variable by Clicking an HTML Anchor Tag in a Canvas App Without Overlaying a Transparent Button?

Like (0) ShareShare
ReportReport
Posted on 10 Jan 2023 19:14:57 by 228

I'm working on a new canvas app and I have html text with anchor tags that when clicked I'd like to set a variable.  The html text dimensions dictate that the content will scroll so I can't place a transparent button over each link.  So when a question link is clicked, I would set a var which would launch modal window content with the answer. 
I don't think that's possible, but I wanted to ask. 

 

// Set var when clicked to launch modal window content
<a href=''>Insert a question here</a>

 

If this is not possible, is it possible to use deep linking to go to a screen AND have a gallery have a specific gallery item selected per a parameter passed in deep linking query string?

Categories:
  • cmanning Profile Picture
    228 on 10 Jan 2023 at 20:15:59
    Re: Can I Set a Variable by Clicking an HTML Anchor Tag in a Canvas App Without Overlaying a Transparent Button?

    Thanks @DavidZoon - I appreciate your detailed response!

  • Verified answer
    DavidZoon Profile Picture
    738 Most Valuable Professional on 10 Jan 2023 at 20:05:26
    Re: Can I Set a Variable by Clicking an HTML Anchor Tag in a Canvas App Without Overlaying a Transparent Button?

    Hello,

     

    You can't launch a power apps function directly with a html link.

    Deep linking is possible, you'll have to pass as a param : the destination screen and an ID of the item to be selected by default in your galery. You'll have to use defaultSelected parameter of your galery.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete