Hi @PranethaaVinoth,
Go to the customize form and set the condition in the “Mandatory Depends On”.
References:
Also, you can do this using a client script.
Thank You!