To embed an HTML page on a custom panel, do the following:

  1. Add a new Custom panel (see help page on custom panels).
  2. Add an HTML element to the panel.
  3. In the Data section, add the appropriate script to embed the correct page (see below).

Embedding a web page into the panel

The following is the example of showing an embedded page:

return {
    url: "https://<url-to-page>/index.html",
    method: "get",
    display: "embed",
};

Embedding Survey123 form into a panel

Survey123 accepts a token= parameter in the URL to automatically sign users in. UNE exposes the current user token to Arcade, allowing you to append it dynamically before launching the embedded form.

var t = Text($useridentity);
return {
    url: Concatenate([
        "https://survey123.arcgis.com/share/examplesurvey?portalUrl=https:%2f%2fexampleportal.com%2fportal",
        "&token=",
        t
    ], ""),
    method: "get",
    display: "embed"
};

Embedding HTML into the panel

In the following example, raw html is used instead of opening an iframe in the application:

Not all HTML tags are available. The HTML returned here will be run through a sanitizer to prevent dangerous content being added.

var html = {
    content: `<h1>SOME MESSAGE</h1>`,
    display: "embed"
};

return html;