# Conditional logic on labels and not fields

**URL:** <https://community.gravityforms.com/t/conditional-logic-on-labels-and-not-fields/1546>\
**Category:** Get Help\
**Tags:** pricing, jetsloth, conditional-logic\
**Created:** [April 8, 2019, 4:32pm UTC](https://community.gravityforms.com/t/conditional-logic-on-labels-and-not-fields/1546 "2019-04-08T16:32:13Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5c0151dea00e37.7](https://avatars.discourse-cdn.com/v4/letter/u/f0a364/32.png) [@user5c0151dea00e37.7](https://community.gravityforms.com/u/user5c0151dea00e37.7)\
**Post date:** [April 8, 2019, 4:32pm UTC](https://community.gravityforms.com/t/conditional-logic-on-labels-and-not-fields/1546/1 "2019-04-08T16:32:13Z")

</div>

I have made some pricing forms using Gravity forms and have conditional logic depending on what is required. And they work fine.  
Problem is if I need to update the prices, and there are a lot of options, I have to go through all of the conditional items again and do them all again because i changed the values. This is a whole days work per form and i have about 10 forms.

So ideally i would like the conditional logic to be based on the labels and not the values. Is this possible. Is there an addon that makes this possible?

---

<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:31am UTC](https://community.gravityforms.com/t/conditional-logic-on-labels-and-not-fields/1546/2 "2019-04-10T08:31:29Z")

</div>

I don’t know of a solution to change the conditional logic to rely on the labels instead of the values, but I do know that JetSloth has a ‘bulk edit’ plugin for Gravity Forms available and perhaps that can help you too:

> **[Bulk Actions for Gravity Forms Wordpress Plugin](https://jetsloth.com/bulk-actions-for-gravity-forms/)**
>
> Bulk Actions for Gravity Forms Wordpress Plugin. Duplicate & delete fields, copy them to another form, bulk edit their labels, and much more!

Another possible way I thought of: how are you using the conditional logic at this moment? I mean, if you’d have selects (or checkboxes / radio fields etc.) you could display a price-field based on the selected option of those fields. That way you could update the product (price) fields, without having to think about the underlying conditional logic.

For example: I have a Gravity Forms quote form on my website. The first field is a radio-select which displays the corresponding product field: [https://onexa.nl/diensten/snelmijnsite/aanvragen/](https://onexa.nl/diensten/snelmijnsite/aanvragen/)

With linking all other conditional stuff to the radio-selects instead of the prices, I’m able to change the prices a lot easier.

That being said: I have no idea how your forms are built, nor the logic behind your current conditional logics in them. So perhaps a solution like this wouldn’t be an option for your forms.

---

<div class="post-metadata">

**Author:** ![user5c0151dea00e37.7](https://avatars.discourse-cdn.com/v4/letter/u/f0a364/32.png) [@user5c0151dea00e37.7](https://community.gravityforms.com/u/user5c0151dea00e37.7)\
**Post date:** [April 10, 2019, 9:52am UTC](https://community.gravityforms.com/t/conditional-logic-on-labels-and-not-fields/1546/3 "2019-04-10T09:52:36Z")

</div>

Thank you.  
I’m going to have a go at that bulk editor.  
If I understand your second point, do you mean for every option it would have its own price field (if the price is unique)? so selecting that option enable that value.  
If that is what you mean the issue i have is there are 10 fields, each with at least 10 options, most with unique values so i would need a 100 price fields which may add too much complexity to the form.

But its a good suggestion i may try out on a smaller form.

Thank yo

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [April 10, 2019, 4:53pm UTC](https://community.gravityforms.com/t/conditional-logic-on-labels-and-not-fields/1546/4 "2019-04-10T16:53:25Z")

</div>

Can you share screenshots of how you have configured the various fields you are basing your conditional logic on?

---

<div class="post-metadata">

**Author:** ![user5c0151dea00e37.7](https://avatars.discourse-cdn.com/v4/letter/u/f0a364/32.png) [@user5c0151dea00e37.7](https://community.gravityforms.com/u/user5c0151dea00e37.7)\
**Post date:** [April 11, 2019, 11:58am UTC](https://community.gravityforms.com/t/conditional-logic-on-labels-and-not-fields/1546/5 "2019-04-11T11:58:10Z")

</div>

Unfortunately the bulk edit plugin doesn’t deal with conditional logic so unfortunately was not helpful.

Here are images of one field with the values, and another field with the conditional logic.

 ![gform2](https://us1.discourse-cdn.com/flex020/uploads/gravityforms1/original/2X/4/4bbaf95f37d374c2f7ee95fcbd24d1f260dde1c1.jpeg)

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [April 11, 2019, 12:40pm UTC](https://community.gravityforms.com/t/conditional-logic-on-labels-and-not-fields/1546/6 "2019-04-11T12:40:11Z")

</div>

Why isn’t field 32 configured as a product, so you can use the label, value AND price?

---

<div class="post-metadata">

**Author:** ![user5c0151dea00e37.7](https://avatars.discourse-cdn.com/v4/letter/u/f0a364/32.png) [@user5c0151dea00e37.7](https://community.gravityforms.com/u/user5c0151dea00e37.7)\
**Post date:** [April 11, 2019, 1:15pm UTC](https://community.gravityforms.com/t/conditional-logic-on-labels-and-not-fields/1546/7 "2019-04-11T13:15:55Z")

</div>

😐

Ok that was dumb of me. Was not aware of the product option.  
The form evolved from a non instant pricing system and i tagged on the values when I should have just started over again.

Thank you for that.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [April 11, 2019, 1:17pm UTC](https://community.gravityforms.com/t/conditional-logic-on-labels-and-not-fields/1546/8 "2019-04-11T13:17:25Z")

</div>

No problem. I hope that works out for you.

---

<div class="post-metadata">

**Author:** ![user5c0151dea00e37.7](https://avatars.discourse-cdn.com/v4/letter/u/f0a364/32.png) [@user5c0151dea00e37.7](https://community.gravityforms.com/u/user5c0151dea00e37.7)\
**Post date:** [April 11, 2019, 4:12pm UTC](https://community.gravityforms.com/t/conditional-logic-on-labels-and-not-fields/1546/9 "2019-04-11T16:12:39Z")

</div>

It is exactly what i was looking for so thank you for that, unfortunately it has created some new issues.  
It sends the price of each field along with the label to Zapier which goes to our ticket system which the customer can see. before it would just send the label.

I’d rather the customer not see a breakdown of the pricing. Also the All fields shows pricing as well. If I manually add each field it doesn’t but it is an added workload.

---

<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 14, 2019, 12:25pm UTC](https://community.gravityforms.com/t/conditional-logic-on-labels-and-not-fields/1546/10 "2019-04-14T12:25:48Z")

</div>

You can filter the all\_fields merge-tag to remove the elements you don’t want added 🙂

> **[gform\_merge\_tag\_filter](https://docs.gravityforms.com/gform_merge_tag_filter/)**
>
> Use this filter to dynamically change the merge tag output.

---

<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:15pm UTC](https://community.gravityforms.com/t/conditional-logic-on-labels-and-not-fields/1546/12 "2022-01-04T17:15:39Z")

</div>


