Generate charts within a survey as user enters data

904
3
Jump to solution
01-27-2022 02:11 PM
Katie_Clark
MVP Regular Contributor

Hello,

I am fairly new to learning JavaScript but I have started using it in surveys when I need to do more complex calculations. I received a request from the client today and what they want to do is to generate a graph dynamically within the survey interface, as the user enters data for a cross section. It would ideally look something like this:

Katherine_Clark_0-1643321237179.png

 

Is it possible to do this in Survey123 using JavaScript? (or any other solution?) I've read a little about the JSCharting but a more broad question is...is it possible to use libraries like this at all within Survey123?

Thanks in advance for any advice!

-Katherine

 

Best,
Katie


“The goal is not simply to ‘work hard, play hard.’ The goal is to make our work and our play indistinguishable.”
- Simon Sinek
1 Solution

Accepted Solutions
DeonLengton
Esri Contributor

Hi Katherine

That is an interesting request.

I think your best bet would be to create a custom add-in for Survey123 https://developers.arcgis.com/survey123/guide/add-ins/#:~:text=To%20enable%20add%2Dins%2C%20go,Resta....

I have made a progress bar but your requirements is beyond that:

https://community.esri.com/t5/arcgis-survey123-blog/survey123-progress-increment-bar-without-appstud...

 

Regards

Deon

View solution in original post

0 Kudos
3 Replies
DeonLengton
Esri Contributor

Hi Katherine

That is an interesting request.

I think your best bet would be to create a custom add-in for Survey123 https://developers.arcgis.com/survey123/guide/add-ins/#:~:text=To%20enable%20add%2Dins%2C%20go,Resta....

I have made a progress bar but your requirements is beyond that:

https://community.esri.com/t5/arcgis-survey123-blog/survey123-progress-increment-bar-without-appstud...

 

Regards

Deon

0 Kudos
Katie_Clark
MVP Regular Contributor

Thanks for the response, Deon! I've never done anything with Add-Ins before so I'll have to read up on it, seems like it could be a good solution.

As I mentioned, I'm still pretty new to using JavaScript within my surveys. Do you know the answer to my more general question about using libraries within the scripts section of S123 Connect? Or is that the point when I need to look into building custom Add-Ins, as you suggested?

Thanks!

Best,
Katie


“The goal is not simply to ‘work hard, play hard.’ The goal is to make our work and our play indistinguishable.”
- Simon Sinek
0 Kudos
PortalAdmin1
New Contributor II

Hey Katherine,

Did you ever figure this out? I'm hoping to do the same and can't find any documentation on it past this thread.

Thanks,

Emil

0 Kudos