interact with popup ?

472
2
Jump to solution
02-10-2012 09:55 AM
DonaldCatanzaro
New Contributor III
Hi All, 

I have javascript application and I want to allow a user to be able to click a polygon, get a pop up to view the attributes, then interact with them. 

So one tab of the popup would have the attributes of the layer itself.

On another tab you would be able to have a form which you could play "what-if".  The user would "start" with the attributes in the layer, but then be allowed to change those values and multiply a few together and then get an answer. 

There is no "editing", when the user closes the pop-up the "what-if" work they have done goes away.

I've only seen pop-ups that are basically read only slices of data so what would be a good pathway to develop this capability ? 

By that I mean should it happen in a pop up ?  info window ? use the identify - popup ?  Something totally different ?

Thanks in advance !
0 Kudos
1 Solution

Accepted Solutions
KellyHutchins
Esri Frequent Contributor
Yes this is possible. Here's an example that shows how to add an extra tab to an info window. The extra tab contains two inputs that are initially populated with values from the clicked feature. Users can change these values and use the button to add them.

http://jsfiddle.net/YSpuY/

View solution in original post

0 Kudos
2 Replies
KellyHutchins
Esri Frequent Contributor
Yes this is possible. Here's an example that shows how to add an extra tab to an info window. The extra tab contains two inputs that are initially populated with values from the clicked feature. Users can change these values and use the button to add them.

http://jsfiddle.net/YSpuY/
0 Kudos
DonaldCatanzaro
New Contributor III
Thanks !  That was awesome !
0 Kudos