cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sharuk
Helper III
Helper III

hyperlink in view form

Hi,

 

i've a form field with hyperlink value, where i want to launch the specified url on click of the datavalue, the thing it is working fine in edit form but not in view form, i'm not sure how can i achieve the same in viewform.

11 REPLIES 11
RandyHayes
Super User III
Super User III

@Sharuk 

So the way this works is that they use a HtmlText control as the control for the link.  That control does not have edit capability.

If you need edit capabilities, then set your Control Type BACK to Edit URL.  

Now, unlock the datacard.  

In the DataCard TextInput control, change the Visible property to : Self.DisplayMode=DisplayMode.Edit

Add a HtmlText control to the datacard and change the Visible property to:  Self.DisplayMode=DisplayMode.View

Set the DisplayMode of the HtmlText control to: Parent.DisplayMode

Set the HtmlText property of the control to: 

    "a href='" & Parent.Default & "'>" & Parent.Default & "</a>"

 

You will now be able to edit the link when in Edit mode and View and click on it when in View mode.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

Sharuk
Helper III
Helper III

@RandyHayes 

Perfect, Thanks!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (14,158)