Paypal quanity based on number of fields entered

I have a form which is going to paypal account. There are 4 attendee fields and I want to send quantity to paypal based on how many attendee fields have been filled out. How would I accomplish this? thanks!

You could use conditional logic to accomplish that:

  1. A radio / select field to have the user select the number of attendees (1-4).
  2. Use that logic to display the corresponding number of attendee-fields.
  3. Use that logic to display the corresponding number of the quantity field (the field could be set to be hidden, so the user doesn’t see it).