Apologies, in that case, you just need to add the LS layer to a web map and set it as the QuickCapture project map.
You can then use $map to reference the LS layer by name.
Here is an example that grabs the Regions polygon layer in the project web map and uses it for an intersect between it and the captured feature ($feature). It returns the region name for the intersected polygon:
// Create a feature set using the 'Regions' layer in the map
var regions = FeatureSetByName($map, 'Regions', ['name']);
// Intersect the current location with the regions and
// get the first region
var region = First(Intersects($feature, regions));
// If the current location does intersect a feature,
// return the name of the region. Otherwise, return null
if (HasValue(region, "name")) {
return region['name'];
} else {
return null;
}
You should be able to modify the above by updating the layer name ('Regions') and returned field ('name' and "name").
Let me know how you go.
Thanks
John