If the proceeding is brought for a court order declaring that one or both spouses has legal capacity for a proposed transaction, the petition shall set forth, in addition to the information required by Section 3121, an allegation of the legal capacity of such spouse or spouses for the proposed transaction.