Passing Variable to HTML code in webview

Hi,

I am trying to create a simple marquee app. Since we don’t have a default component for marquee, i am using Webview and the below code:

Title of the document marquee{ font-size: 30px; font-weight: 800; color: #8ebf42; font-family: sans-serif; } A scrolling text created with HTML Marquee element.

The marquee is working fine.

I want to change the Parameters of “font-size: 30px” and “Text : A scrolling text created with HTML Marquee element.” using variables.

Is it possible to pass on Data/App/page Variable to webview?

Thanks in advance.

Regards,
Anup

You could do this as a formula for the HTML Content:

“{ font-size:” + pageVar_fontsize + “; font-weight: 800; color: #8ebf42; font-family: sans-serif; }” + pageVar_Text

Thanks John!! I am able to get the variable now in HTML…in the Preview app it’s coming as blank. Any ideas!!

Thanks It is working now!!

1 Like