Display form not showing correct gallery item selected

I have no clue where to go from here so would really appreciate the help!

I am working on an app where, very simply, there is a gallery that is filtered to only show items that you have created, when you click a gallery item it goes to a display form that also then shows you an edit button which, when clicked on, takes you to an edit form.

When i click the gallery item, it always only shows the first item i click in the display form but when i go back never "refreshes" to show the new item.

Re: Display form not showing correct gallery item selected

Ive tried the gallery.selected route but i still get the issue where the wrong item is shown in the "display mode" form, but shows the right one in the "edit form" mode. Its weird cause this all works in the preview its just as soon as i publish the published version doesn't work!

I started doing the global variable option you said below but came up with a red squiggly line under : LookUp('Workshop Information',Title=varDisplayItem) it doesn't seem to like the 'Workshop Information' bit. When i change the source to the sharepoint list source it just shows any old random item from the list and not the filtered one i selected in the gallery.

Re: Display form not showing correct gallery item selected

What I would suggest on the LookUp part to get it to work is don't try and just type it in.

* Put just your data source and make sure it works

* Then click to the left of it and put the LookUp(

* click to the right of it and put the ,YourColumnName=varDisplayItem)

Make sure on the Set you have the same column name as the LookUp. It doesn't have to be Title, that is just what I use most often but you can put whatever one you want to use...just make sure you refer to the same one in both places.

Also, as a little test on the second screen put a text box and make it varDisplayItem.Text and make sure it is pulling the right field that you selected. That way you know if it is the Set or LookUp that isn't working right.