I've created an edit box field "Viewer" and I've added a web viewer to a layout. When I drop HTML code into "Viewer" how do I get it to display in the web viewer? I've tried a few different ways but can't seem to get it to work. Thanks.
MikeWile wrote:I've tried a few different ways but can't seem to get it to work.
I've tried a few different ways but can't seem to get it to work.
It would have been helpful if you'd listed those ways, and their results.
In the Web Viewer calculation box, did you try this entering this formula?
"data:text/html," & YourTable::Viewer
I hadn't tried that. Thank you.
This thread may help, if you need to use external resources (images, JS, CSS):
This will help explain the data URI (used on web pages and in the FM Web Viewer):
Keep in mind that the data uri need not be a full HTML page. A snippet of valid HTML will work:
<p>This is a sentence with a bolded word.<br>This is line two!</p>
Thank you Beverly. I'll be sure to read up on those.
I missed one (FMI help):
Did you catch the way to use embedded base64 (images)? This function may help:
Retrieving data ...