Power Apps Exchange

Please login or click SIGN UP FOR FREE to create your PowerAppsUG account to join this user group.
Expand all | Collapse all

Set Variable within html text / make clickable words

  • 1.  Set Variable within html text / make clickable words

    Gold Contributor
    Posted Jan 04, 2021 03:36 AM
    I have a special case. I want to build up some kind of wiki knowledge base. And im stucking in one requirement.
    My current status/idea is following:

    In a SharePoint list, i am maintaining some articles with a title, a content field (rich text) and a lookup.

    In the PowerApp, i am showing this articles in a form viewer (readonly).
    The item property is filled via a variable --> LookUp('Wiki Test', Title = _selectedArticle)
    What i need to achieve is the following. I want to be able to set the variable within the content text via clicking on a marked word.
    Currently the word "Elektrode" and so on are formatted blue manually. But in my idea, i can click on it and it will set the variable "_selectedArticle" to the word "Elektrode". Do you think this is somehow possible?

    I am currently trying with putting "[ ]" around the article words and then replacing these with "Set(_selectedArticle,", but i dont think it will work.
    Any other ideas?

    Fabian Heil
    IT Consultant SharePoint Applications

  • 2.  RE: Set Variable within html text / make clickable words

    Top Contributor
    Posted Jan 05, 2021 01:30 AM
    Edited by Warren Belz Jan 05, 2021 01:30 AM
    Hi @Fabian Heil,
    Firstly, here is an article that I answered a little while back​ on a related subject, so firstly, you need a HTML box (not a Rich Text Editor) for any hyperlink to work, however this will only launch URLs and not internal Power Apps commands, so unfortunately there is not much you can do here.

    Warren Belz
    Queensland Australia