I currently have a standalone Appian instance hosted on AWS running on 18.1 HF A. I was trying to use the new a!webContentField() component to embed HTML files stored on the same server as my install, and received the error:
Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function a!webContentField: A web content field [label=“”] has an invalid value for “source”. Source may not be an Appian user interface. Received: https://[SERVER_AND_PORT]/demo.
As soon as I changed the URL to AWS' public name instead of the SERVER_AND_PORT name, I was able to load the file successfully.
Calling HTML file using SERVER_AND_PORT: www.screencast.com/.../oZrit8Htlu4
Calling HTML file using AWS public DNS name: https://www.screencast.com/t/OyHoGtarEP
It seems that Appian sees that its base URL is being sourced, and is assuming that the content is its own. I think it may be a common use case to host content locally that can be embedded into interfaces to enhance functionality. Am I missing something, or does this component just not yet support locally hosted content?
Thanks in advance!
Discussion posts and replies are publicly visible
Hi brettr
Advance apologies, this isn't a great answer -the docs do specify that the Web Content Field displays content from "an external source".So, your speculation about Appian thinking that it's pulling it's own content might be close to what's going on.When a feature (like this one) is offered in preview mode, we can expect that it's only going to get better in future releases. Keep this feedback coming, and this product team should take notice.Thanks,
Rob
Hi Brett -
I passed the feedback along.When you're feeling strongly about unexpected behavior, a support ticket is your best avenue for communicating that to the product team.Also, I know this isn't exactly the same thing, but have you considered the use of a billboard layout for your banners?
Thanks,Rob
Hi All,
I have a similar issue, trying to embed http://xx.xx.xxx.xx into appian's iframe using a!webcontentfield() but it is not loading, though the url is accessible over internet.
Appreciate suggestions and workarounds!
Hello Kumara53,
a webcontentfield will only allow https URL's.