can you please explain more what do u exactly want and what's that your doing now?
Thank you so much for helping me. My swiss cheese brain in learning slowly but I read more about repeater today.
Basically I have asked member about 27 questions. It is too much information to have in the repeater. So I decided to create a "more information" button that would link to the specific field data of the specific repeater item.
I thought I had this working correctly but then noticed when testing that the data was being generated as "template data" and was not specific to the item that was being reference
Hence if the user wanted to see more information about "Tom" then the "more info" button would drive the user to the additional field item information stored on "Tom" that has not been represented in the initial repeater. Ohhh boy, I hope this is clear.
.... on more ready
.... looks like I should write code so that the button1 in repeater 1 uses a "getItem (1) function and then I can figure out how to reference the children fields of that item ....
and then repeater 2 uses a "getItem (2) function and then I can reference the children fields of that item
and then repeater 3 uses a "getItem (3) function and then I can reference the children fields of that item
from what i understand you want a button that when clicked it shows more information about the person it was clicked for. as i see you have a repeater each item has the member and the button.
now if that is the case then i would suggest the following:
- use one repeater with hide and show
use one repeater.
add the member and the button and a text box.
make the text box hidden on load
when clicking on the button show the text box (it contains the further info )
- use two repeaters and show extra info in the second one (what you are doing ?)
add the repeaters.
when clicking on the button get the current item data --> $w('#repeaterData').getCurrentItem()
based on that show only the corresponding item in the other repeater. (using index or id or ..) make an if statement to only show the wanted item on the second one.
- additional idea: when clicking on the button redirect the user to a dynamic page that hold all the members
see about repeaters here: https://www.wix.com/code/reference/$w.Repeater.html#
Thanks you for your suggestions! I will digest this information, apply and let know how I do.
Yesterday I started undering how to .. and then started writing code in the console editor. I learn quickly but my brain is struggling with understanding this new language. It is very logical so I think once I understand the protocols then I will accel quickly at coding