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.
By default, the hyperlink display text of the SharePoint HyperLink field doesn’t show in the PowerApps custom form.
As a workaround, we can create an MS Flow to get it, check the thread here: Get hyperlink display text in SP list.
To post to the SharePoint list from PowerApps, we can use text input to receive user input and set the value to SharePoint using MS Flow with REST API.
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.