# Html expression question

**URL:** <https://forum.inductiveautomation.com/t/html-expression-question/20066>\
**Category:** Ignition\
**Created:** [October 9, 2018, 12:01pm UTC](https://forum.inductiveautomation.com/t/html-expression-question/20066 "2018-10-09T12:01:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![joostjojo](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@joostjojo](https://forum.inductiveautomation.com/u/joostjojo)\
**Post date:** [October 9, 2018, 12:01pm UTC](https://forum.inductiveautomation.com/t/html-expression-question/20066/1 "2018-10-09T12:01:45Z")

</div>

this isn’t a multiline html expresion…

We want an expression which contains multiline html, so we can change soms text with tagvariables

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [October 9, 2018, 12:46pm UTC](https://forum.inductiveautomation.com/t/html-expression-question/20066/2 "2018-10-09T12:46:03Z")

</div>

```auto
'<html>'+{path/to/tag}+'<br>'+{path/to/another/tag}

```

---

<div class="post-metadata">

**Author:** ![joostjojo](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@joostjojo](https://forum.inductiveautomation.com/u/joostjojo)\
**Post date:** [October 10, 2018, 8:29am UTC](https://forum.inductiveautomation.com/t/html-expression-question/20066/3 "2018-10-10T08:29:52Z")

</div>

> [@Multi-line text return from expression](https://forum.inductiveautomation.com/t/multi-line-text-return-from-expression/19175/10):
>
> ext wit

This is not working in an expression, does javascript need a specified structure which is not available in an expression?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 10, 2018, 10:16am UTC](https://forum.inductiveautomation.com/t/html-expression-question/20066/4 "2018-10-10T10:16:46Z")

</div>

> [@Multi-line text return from expression](https://forum.inductiveautomation.com/t/multi-line-text-return-from-expression/19175/12):
>
> This is not working in an expression, does javascript need a specified structure which is not available in an expression?

Javascript? Are trying to execute javascript within the html? String properties won't do that. Whatever substitutions you wish to perform must be done before the string is assigned to the property. Either as expressions, or via some form of scripting.

---

<div class="post-metadata">

**Author:** ![joostjojo](https://avatars.discourse-cdn.com/v4/letter/j/ac91a4/32.png) [@joostjojo](https://forum.inductiveautomation.com/u/joostjojo)\
**Post date:** [October 10, 2018, 2:03pm UTC](https://forum.inductiveautomation.com/t/html-expression-question/20066/5 "2018-10-10T14:03:31Z")

</div>

> [@Multi-line text return from expression](https://forum.inductiveautomation.com/t/multi-line-text-return-from-expression/19175/13):
>
> titutions you wish to perform must be done before the string is assigned to the prop

yes, we are trying to use a google maps api with javascript to set markers on it and let it move based on tag values. So when the tag values changes, the markers position also have to change whitout refreshing the whole page.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [October 10, 2018, 6:11pm UTC](https://forum.inductiveautomation.com/t/html-expression-question/20066/6 "2018-10-10T18:11:22Z")

</div>

Perhaps this will help.

> [@Dynamic Google Maps](http://forum.inductiveautomation.com/t/dynamic-google-maps/16051):
>
> Hello, I have recently started a project where our client has a large number (\>100) of remote sites in various regions. They have requested an interactive map element to indicate the location and status of these sites. I have reconfigured the Google Maps example provided in the ignition demo to work in my project. However, now I am attempting to update/add markers without refreshing the html and haven’t been able to do so. Essentially I am wondering how I can access (add and delete elements) a …
