Skip to main content
Answer

Injecting client side Javascript

  • October 14, 2024
  • 4 replies
  • 118 views

Hello,

Looking for a little guidance on how to get client side JavaScript to work. We are evaluating a platform called UserFlow the automates onboarding by guiding you through the product with prompts and such.

The installation require injecting JavaScript into the body of the page then calling a couple of functions to initialize and start user flows.

I placed the main JavaScript into a columns container in the header of the Customers page, then attempted to initialize in the Init property of the data source. I even put a couple of buttons on the screen to call the initialize and start functions. 

Does it look like this should work?

 

 

 

Thanks,

Mark

Best answer by Zoltan Febert

@mpierson @darylbowman  Based on the screenshots, I’d say something like this should work.

4 replies

darylbowman
Captain II
Forum|alt.badge.img+15

@Zoltan Febert 


Zoltan Febert
Jr Varsity I
Forum|alt.badge.img+3
  • Jr Varsity I
  • Answer
  • October 15, 2024

@mpierson @darylbowman  Based on the screenshots, I’d say something like this should work.


hdussa
Jr Varsity I
Forum|alt.badge.img+1
  • Jr Varsity I
  • October 16, 2024

Hello @mpierson ,

Try checking the “CommandPerformed” rather initialize.

Here is a sample might help.

https://stackoverflow.com/questions/56006748/dynamically-change-button-color/56008485#56008485


  • Author
  • Freshman II
  • October 16, 2024

I was able to get the script to run just from the JavaScript control.