Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.

Trouble using SVG in Longtext HTML

Hello everyone!

I am using SVG's (Show -> Image) in my app to make custom dashboards. Problem is, i would want to make some of them clicables. I guess in order to do so, best way would be to use HTML longtext with SVG in it. Problem is, i tried quite a lot of ways, but i can't manage to make it work. I tried what @Rifad explains here (put it in src)

https://www.googlecloudcommunity.com/gc/AppSheet-Q-A/How-to-embed-an-SVG-code-into-a-LONG-TEXT-HTML-...

But didnt work.

Example of my code:

All5_0-1749044594373.png

 

(tried to without the data:..., just with the svg and didnt work).

This is what my app is showing:

All5_1-1749044622124.png

Can anyone help me please? 🙂

 

0 2 186
  • UX
2 REPLIES 2

puedes colocar tu svg dentro de este codigo para que pueda reconocerlo 

CONCATENATE(
  "data:image/svg+xml;utf8,",
  substitute(
  '
----- aqui tu svg----
',
  "#", "%23")
)

Use URLENCODE(), not SUBSTITUTE().

Top Labels in this Space