Select single or multiple image in AEM forms

Avatar

Avatar

rakeshk21205956

Avatar

rakeshk21205956

rakeshk21205956

19-10-2020

Hi,

 

I am trying to make a form in which i have to insert 8 - 10 images  and want user to select one of the image.  

I don't want to use radio buttons or checkboxes in front of each image. I want somehow user clicks on the image and it somekind of differentiates between the selected image and the rest..

 

Plz guide how to approach this.

 

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Kosta_Prokopiu1

Employee

Avatar

Kosta_Prokopiu1

Employee

Kosta_Prokopiu1
Employee

19-10-2020

You idea is basically good. Find a sample with a little trick in the link below.

The Selected Image field can be hidden and serves as the indicator for which image was selected. By using the same name for image and button you can build an "array" of objects where you check the .index . The calculate is the tricksy thing - when you press the button it overwrites the TextField - as we use the calculate of the button all the buttons changes their looks.

The designer will block the buttons when you enter a new calculate script. That will be corrected by the initialize line.

https://documentcloud.adobe.com/link/review?uri=urn:aaid:scds:US:2a954680-ba83-4523-bd30-445af6c7e85...

Answers (0)