Janise Dismuke
Posts: 0
Joined: Mon Apr 14, 2014 8:24 pm

Hide/Show same image on list

I have a list that is generated through salesforce. I have an image in the list that is not visible but when click Save, I have Appery('image').show(). Works perfectly for the first item on list but doesnt work when I click save on the 2nd, 3rd, etc on the list.

How can I get this image to show when I click save on different items in the list.
I have no source or URL. It is an assest image from appery, the thumps-up.png.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Hide/Show same image on list

Hello Janise,

Appery('image') gets the first item on the current page with dsid=image
That's why it works only for the first list item.
Please look at this link: https://getsatisfaction.com/apperyio/...

Janise Dismuke
Posts: 0
Joined: Mon Apr 14, 2014 8:24 pm

Hide/Show same image on list

I dont think I am following through correctly.

When I click save I run javascript handler:

var text = $(this).parent().find("[name=image2]").text();

??

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Hide/Show same image on list

Janise,

The link that we gave to you describes approach, how to work with elements which you get in the result of mapping. If you need to show an element with the name image, then you should use code like this:

code$(this).parent().find("[dsid=image]").show();/code

Return to “Issues”