Retrieving field from Dataset in Gallery object

Guys,
I am trying to retrieve contents on a field in a dataset (Field name: Color). This dataset is connected to the page on a gallery (using a standard grid type gallery). I wish to retrieve the contents of the field upon onItemClicked event. I have tried using the .currentItem property, but I get an error saying the particular gallery doesn’t not support this property. Which gallery should I select? I am very confused about how to go ahead.

export function gallery3_itemClicked(event) {
//Add your code for this event here:
console.log($w(‘#gallery3’).items); //works - returns an array
console.log($w(‘#gallery3’).currentItem); //fails - error saying property not supported
}
Secondly, once the property can be used, how do I retrieve the contents of the particular ‘Color’ field according to the item that was clicked?
Can I use something like this?
let color = $w(‘#gallery3’).currentItem[‘Color’,??];
$w(“#FormField4”).value=color;

or do I need to refer to the Dataset; i.e;
let colorset = $w(‘#dataset3’).getcurrentItem();
let color = colorset.color;
$w(“#FormField4”).value=color;

Is it right to assume that currentItem from the gallery will be the same array as getcurrentitem from the dataset?
Please help; I am very new to JScript and Wix and website building lol.
thank you
Varun