Something I would think would be simple but running into a wall here.
Working on a canvas app with a gallery. I have a column in a SharePoint list that is single line text and contains a url with spaces.
I am trying to use the EncodeUrl function to remove the spaces and thus make any links in that column clickable so that they will launch without issue in a new browser window.
I have tried quite a few ways of doing this but none of them allow the link to launch.
I have tried:
I am hoping this is possible as how else would this function be useful?
Beyond this the only other thing I can think of doing would be to use Power Automate to EncodeUrl into a new field and using that field but this would require changing every item on the list, something I do not want to do.
Solved! Go to Solution.
Hello @RobotRising ,
You can try using Launch(<labelname>.Text) in the 'OnSelect' to see if that works for you. LabelName here will be the Label where your original URL shows in the Singe Line of Text field, The 'Text' should be having ThisItem.ThisField.
Regards,
Community Support Team _ Raashi Sen
If this post helps, then please 'Accept' it as the solution to help the other members find it.
Hello @RobotRising ,
You can try using Launch(<labelname>.Text) in the 'OnSelect' to see if that works for you. LabelName here will be the Label where your original URL shows in the Singe Line of Text field, The 'Text' should be having ThisItem.ThisField.
Regards,
Community Support Team _ Raashi Sen
If this post helps, then please 'Accept' it as the solution to help the other members find it.
Thank you Raashi!
Didn't even need to use EncodeUrl at all, using the Launch function on the text label actually will properly encode the url on launching to a browser.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
192 | |
67 | |
46 | |
41 | |
22 |
User | Count |
---|---|
252 | |
121 | |
84 | |
80 | |
72 |