Page 1 of 1

Hide/Show same image on list

Posted: Fri Jun 27, 2014 4:54 pm
by Janise Dismuke

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.


Hide/Show same image on list

Posted: Fri Jun 27, 2014 5:16 pm
by Evgene Karachevtsev

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/...


Hide/Show same image on list

Posted: Fri Jun 27, 2014 6:55 pm
by Janise Dismuke

I dont think I am following through correctly.

When I click save I run javascript handler:

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

??


Hide/Show same image on list

Posted: Fri Jun 27, 2014 7:37 pm
by Evgene Karachevtsev

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