You can reduce the spicy compounds by soaking sliced onions in cold water. It makes the onions sweeter and keeps them crispy. Allowing the sliced onions to soak in vinegar or lemon juice will remove more of the pungent flavour, but the onions will soften and absorb the sour taste.  Cooking the onions over low heat will also allow them to soften and become sweeter.