For example how can I make this the value of html content in a webview but replace the url with a variable? No matter how I try, it flags a symbol and will not let me save it
<iframe src="mypage.html" style="position:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;"> Your browser doesn't support iframes</iframe>
You need to “escape” those characters.
Use this escape character, the backslash: \
I tried placing that character directly before the first red character being flagged, in case that is what you meant. That did not work.
Assuming you store your URL in a page variable called “mypagehtml” then your formula would be like this:
"<iframe src=" + "\"" + pageVars.mypagehtml + "\"" + " style=\"position:fixed; top:0; left:0; bottom:0; right:0; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;\"> Your browser doesn't support iframes</iframe>"
Note this has to be entered as a Formula - not a Text value.
2 Likes
I guess it did not dawn on me that variable can be used for long strings html. But this works, thank you.
1 Like