On the existence of variations, possibly with pointwise gradient constraints