You can use any other type of onion, but then your jam will be less sweet. To fix this, simply add more sugar or honey. I am yet to discover the shelf life of onion jam, because it always disappears within a few days after cooking, eaten with a cheese plate, toast, liver, pies, steaks, duck or foie gras