Solved

how to add CSS code with javascript to K2 smartform

  • 13 May 2020
  • 2 replies
  • 215 views

Badge +4

I am creating a horizontal timeline which would be dynamic. It has html,CSS and Javascript.

I have added datalabel and created expresstion with <html><style>--</style></html><script>--</script>

but only css code is running. javascript is not working.

 

Could you please let me know how to add all together. 

 

icon

Best answer by boringNerd1 14 May 2020, 09:42

View original

2 replies

Badge +15

Have you tried moving the <script> block to inside the <html> block?

Badge +4

Hi

Its working fine now..I added <script type="text/javascript> and it does the magic!

Thanks for suggestion

Reply