You need to sign in to do that
Don't have an account?
Visualforce popup in apex:repeat
Hi,
I am trying to get a lookup behaviour on my VF page. I have an image that shows a popup, gets first name , last name from the user, creates a contact and then displays the ID in a input text box. I have this behavior repeated for many rows, ie. i have a apex:repeat and each row has an image button which calls this popup and calculates the id, and an input text box that displays the created id.
The problem is, how do I get the id of the input text field from the repeat row? My image and input text field are in the same row, but how do i find out which row's image did i click?
Regards
Shuchi
Try putting the Id of the object or something else like that dynamic as part of the id of the field and then passing that through the javascript onclick method.
All Answers
Try putting the Id of the object or something else like that dynamic as part of the id of the field and then passing that through the javascript onclick method.
Good idea ! Thank u Damien. I used .closest() jquery method to get the closest element since they were both in the same row.