Execute javascript within Button Widget

199
1
11-01-2023 02:32 PM
Labels (1)
kgeiger
New Contributor

I'm working in Experience Builder. I have a bunch of widgets installed. Two questions:

- Is there a way to define some javascript code that will execute when a button (button widget) is clicked? I see that the button can go to a URL, but don't see how to execute some code.

- In connection with this, can the button reach out to other widgets and get data from that widget to use in the aforementioned javascript code?

0 Kudos
1 Reply
JeffreyThompson2
MVP Regular Contributor

No, ESRI does not permit you to write your own code in the builder mode of Experience Builder. There are some very valid security concerns around this. If you want to add some of your own Javascript you will need to download Developer Edition.

GIS Developer
City of Arlington, Texas
0 Kudos