Skip to main content
April 2, 2024
Question

How can I show HTML in UI

  • April 2, 2024
  • 8 replies
  • 0 views

Hi All,

I am trying to display a HTML document in interface. How can I do this any suggestions.

Thanks in advance

    8 replies

    subhankarb6682
    April 2, 2024

    You can use use richtextdisplay function for html content...need to check for document..will keep you posted

    shubhama926776
    Brainy
    April 2, 2024

    To display an HTML document in an Appian interface, you can use an "Embedded Web Content" component.
    In the interface designer, add an "Embedded Web Content" component to your interface.
    Configure URL: Set the URL property of the component to the location of your HTML document. This could be a URL hosted externally or a relative URL within your organization's network.

    srmm0001
    April 2, 2024

    For example, if you have a variable named htmlContent that holds your HTML code, you would configure the Rich Text Display like this:

    a!richTextDisplayField(
    labelPosition: "COLLAPSED",
    value: ri!htmlContent /* Assuming ri!htmlContent contains your HTML code */
    )

    Note:docs.appian.com/.../Rich_Text_Component.html

    harshitb6843
    April 3, 2024

    [mention:2e70db6187af4fffafc92daf9f335d79:e9ed411860ed4f2ba0265705b8793d05]  Appian doesn't support displaying the HTML in the UI directly but there is a component available as a plugin by Appian that will be able to help you if you pass your HTML in the component's value parameter. 

    [View:~/b/appmarket/posts/rich-text-editor:320:240]

    mohammadasifh7807
    September 23, 2024

    I found the solution. It's very simple(Just striphtml function).  No need of regular expression or plugin hopefully.

    mohammadasifh7807
    September 23, 2024

    I found the solution. It's very simple(Just striphtml function).  No need of regular expression or plugin hopefully.

     

    November 28, 2024

    Hi, Could you share the code snippet.

    i also have the similar problem. I have html file in appian folder. Onclick of document name i should open the document in preview in browser not downloading.

    any leads helps a lot.

    thank you 

    stefanhelzle0001
    November 28, 2024

    Appian does not support HTML inside the UI. The styled text field only supports a small subset.