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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Launch URL by clicking...
Power Apps
Unanswered

Launch URL by clicking on field

(0) ShareShare
ReportReport
Posted on by 820

Hi

I have set a launch function that opens a document library for particular item but i have an issue that launch function on action "On select" works only if datacard is in real edit mode when i press edit all on form when it opens.

on datacard value i have this formula(on select)

Launch(ThisItem.URL).  this URL is updated with flow when item is created

 

On datacard i set the folowing:

If(SharePointForm1.Mode=FormMode.New,DisplayMode.View,DisplayMode.Edit)

 

My goal is when users recieve info in email with a link to sharepoint item they open this item and in the field that i set launch function they open this document library. Now i can not open this document library without pressing edit and so the datacard gets into real edit mode

What i am doing wrong?

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,989 Moderator on at

    @jja 

    It sounds like your button is following the DisplayMode of the form.  Can you change the DisplayMode of the button to the following code (instead of the DataCard)?  My thought is this will make the button's display mode independent of the form.

    DisplayMode.Edit

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up." 

  • julijazas Profile Picture
    820 on at

    Hi @mdevaney 

     

    But it is not a button it is simple text field look 

    biblioteka.PNG

  • mdevaney Profile Picture
    29,989 Moderator on at

    @jja 

    The same idea will apply here.  Change the DisplayMode of the label to DisplayMode.Edit and it will still be clickable even when the form is in view mode.

     

    Another idea is to put a transparent label field directly over top of the Text Input and put the OnSelect code there instead.  You could make the transparent label appear only when the form is in ViewMode to prevent launching a website while in EditMode.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • julijazas Profile Picture
    820 on at

    Hi @mdevaney 

     

    I tried now all it does not work like that. My all datacard, datacardvalue and datacardkey is set to displaymode.edit.

    I put on all of them on lauch function

    I removed the formulas to check if the form is in new mode or view mode.

    I still need to press edit all to get the link clickable.

  • Verified answer
    mdevaney Profile Picture
    29,989 Moderator on at

    @jja 

    Have you tried the transparent label idea too?  This could help you avoid the problem entirely.

     

    ""

    Another idea is to put a transparent label field directly over top of the Text Input and put the OnSelect code there instead?.  You could make the transparent label appear only when the form is in ViewMode to prevent launching a website while in EditMode.

    ""

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • julijazas Profile Picture
    820 on at

    Hi @mdevaney 

    I just tried your idea of putting on top a label and i put launch code on select as well.

    it is also same. it does not work untill i press edit all button on the form itself. The label is on edit display mode

    Something is tricky here but i do not believe i can not achieve my wish

  • mdevaney Profile Picture
    29,989 Moderator on at

    @jja 

    What if you place the transparent label outside of the form (from a controls relationship perspective) but still place its XY location directly on top of where the Text Input is?

  • julijazas Profile Picture
    820 on at

    @mdevaney 

     

    Then i can not execute ThisItem function. it looses relationship

    maybe you can try to reproduce this approach in your environment. I still think i am doing something wrong

  • mdevaney Profile Picture
    29,989 Moderator on at

    @jja

    Instead of referencing ThisItem in the transparent label wouldn't it be possible to directly point to the Text Input instead?

     

    Launch(DataCardValue15.Text)

     

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • julijazas Profile Picture
    820 on at

    @mdevaney 

    that is what i am tryong to do now:)

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard