I have a field in SharePoint defined as a hyperlink (a link to somewhere else in the site). When I create a customized form for the list using Power Apps, I only have the ability to include a field to store the URL address. How do I allow the user the ability to enter the display text? Each Hyperlink has an address and display text component. I used the SharePoint PowerApps Customize forms option.Â
HI…
Solved! here it is a solution to display text for sharepoint hyperlink field in power apps
Try this approach.
In your form, select the hyperlink field and unlock the datacard.
Now add HTML text field to the selected data card and rename it something like ‘hyperlink’. Set its properties like X,Y,Height and Width etc. similar to DataCardValue field.
Â
Set below properties for new field-
Set “HTMLText” (Make sure to replace datacardvalue with correct value)
Concatenate(“<a href='”,DataCardValue3.Text,”‘>”,DataCardValue3.Text,”</a>”)
Set “Visible” (Make sure to replace form name with correct value)
If(SharePointForm1.DisplayMode = DisplayMode.View,true,false)
Set “AutoHeight” to True
Set “Visible” property of DataCardValue to below code.
If(SharePointForm1.DisplayMode <> DisplayMode.View,true,false)
Save and publish your form. Now your View form will display link while Edit/New form will display textbox.
Hope this helps.