Conditional payment based on user input

Conditional payment based on user input

Is there a way to make the recurring payment on the form conditional based on a particular input the user gives on the form.

Example : if the user says Monthy Payment it is process as a monthly payment . If the user specifies Annual payment it should process the payment as one time.

Thanks.