Hello, I am trying to implement a form where users choose an image from a list of images. These images will need to be placed in a horizontal row and a radio button placed under them. Clicking on the thumbnail image will open a modal window with the real image shown. By selecting the radio button, user can select a particular image. Here’s what I have:
isc.DynamicForm.create({
autoDraw:true, width: 400, items: [
{name:"Thumbnails",title:'', editorType:'radioGroup',vertical:false,
valueMap:{'Thumbnail 1':Thumbnail 1',Thumbnail 2':Thumbnail 2'}, click: function() {alert();}
}
]
})
I got the part of opening the real image when clicked on the thumbnail in a modal window. But that was by using a HStack of ImgButtons above this Dynamic Form. I was hoping to see if I can place images (replacing the radio titles, only on top of the radio button) within the DynamicForm code, instead of outside it (the positioning is obviously messed up if I use two separate widgets to manage this). Also, how can I retrieve value of which thumbnail was selected on the onClick for radio buttons? thanks a lot for your help.