# Paypal quanity based on number of fields entered

**URL:** <https://community.gravityforms.com/t/paypal-quanity-based-on-number-of-fields-entered/1541>\
**Category:** Get Help\
**Created:** [April 8, 2019, 1:11pm UTC](https://community.gravityforms.com/t/paypal-quanity-based-on-number-of-fields-entered/1541 "2019-04-08T13:11:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![karleyb](https://avatars.discourse-cdn.com/v4/letter/k/43a26b/32.png) [@karleyb](https://community.gravityforms.com/u/karleyb)\
**Post date:** [April 8, 2019, 1:11pm UTC](https://community.gravityforms.com/t/paypal-quanity-based-on-number-of-fields-entered/1541/1 "2019-04-08T13:11:07Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![hiranthi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/hiranthi/32/359_2.png) [@hiranthi](https://community.gravityforms.com/u/hiranthi)\
**Post date:** [April 10, 2019, 8:35am UTC](https://community.gravityforms.com/t/paypal-quanity-based-on-number-of-fields-entered/1541/2 "2019-04-10T08:35:33Z")

</div>

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).

---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [January 4, 2022, 5:30pm UTC](https://community.gravityforms.com/t/paypal-quanity-based-on-number-of-fields-entered/1541/3 "2022-01-04T17:30:11Z")

</div>


