Form with on-demand field

I have a form with 03 fields (issuer’s email, Subject and message)

If the logged-in user has the defined e-mail address in their register, it will not be necessary to request the amount.

Does anyone know of an example or how should I do this?

It’s described in the docs here.