This question has options. How would someone go about accomplishing this goal?
To make onions more sweet in their flavor,

pick from the following. * cook the onions for only a short amount of time for sweetness.. * cook the onions for a long time until they shrink down..
cook the onions for a long time until they shrink down.