# If\>Then (conditional) field selection for Components

**URL:** https://community.glideapps.com/t/if-then-conditional-field-selection-for-components/25505
**Category:** Feature Requests
**Created:** [April 13, 2021, 3:09pm UTC](https://community.glideapps.com/t/if-then-conditional-field-selection-for-components/25505 "2021-04-13T15:09:30Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Harry\_OBrien](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/harry_obrien/32/14485_2.png) [@Harry\_OBrien](https://community.glideapps.com/u/Harry_OBrien)
#### Post date: [April 13, 2021, 3:09pm UTC](https://community.glideapps.com/t/if-then-conditional-field-selection-for-components/25505/1 "2021-04-13T15:09:30Z")

</div>

Conditional component visibility is great, I think what could take things a step further and reduce the need for extra columns or components would be If\>Then conditional field selection.

My use case is: I want to output different fields (columns) on an inline list component based on a user’s Choice/Boolean selection. To do this I currently have to do one of two things  
A. duplicate the component X times and set conditional visibility for all the different variations or  
B. create an If\>Then column to output the column values which correspond the user’s Choice/Boolean.  
I think B is leaner, however both of these create bulk.

My suggestion would be to enable If\>Then conditional selection of what field/column should display when selecting the Data etc for the Component. I mocked up something basic for a visual idea

 ![wwww](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/7/970925df397606f0ebe092308fde5bb3ebc538d0.png)

---

<div class="post-metadata">

### Author: ![Pablo\_books](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/pablo_books/32/2110_2.png) [@Pablo\_books](https://community.glideapps.com/u/Pablo_books)
#### Post date: [April 13, 2021, 3:33pm UTC](https://community.glideapps.com/t/if-then-conditional-field-selection-for-components/25505/2 "2021-04-13T15:33:05Z")

</div>

This is possible using the ‘If Then Else’ column:  
[https://docs.glideapps.com/all/reference/data-editor/computed-columns/if-then-else](https://docs.glideapps.com/all/reference/data-editor/computed-columns/if-then-else)

---

<div class="post-metadata">

### Author: ![Harry\_OBrien](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/harry_obrien/32/14485_2.png) [@Harry\_OBrien](https://community.glideapps.com/u/Harry_OBrien)
#### Post date: [April 13, 2021, 3:44pm UTC](https://community.glideapps.com/t/if-then-conditional-field-selection-for-components/25505/3 "2021-04-13T15:44:25Z")

</div>

I am using this at the moment, my thought was perhaps it could be baked in to Glide field selection to remove the need to create If Then Else columns for each variation. It would save on build time and help reduce bulk (less columns).

---

<div class="post-metadata">

### Author: ![Harry\_OBrien](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/harry_obrien/32/14485_2.png) [@Harry\_OBrien](https://community.glideapps.com/u/Harry_OBrien)
#### Post date: [April 15, 2021, 12:08pm UTC](https://community.glideapps.com/t/if-then-conditional-field-selection-for-components/25505/4 "2021-04-15T12:08:20Z")

</div>

I have a similar idea to add to this

**Create Template Fields from the frontend app builder.**

Again I’ve created a mockup of how it could look, it could be added to the ‘custom’ option

Often times I’d like to prefix a field with plain text eg. **Total Votes:** `[VotesField]` however this requires creating a new Template column in the data editor.

Having thought about why I want this, I think I am really just after the ability to create `If>Then`, `Template` and other columns from the frontend app builder. It could still create the field in the data editor for reusing elsewhere, maybe that would make more sense

 ![Templates from Visual Editor](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/f/5/f52de510d662b95f59110013e4a4d85defa7a551.png)

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [April 15, 2021, 12:48pm UTC](https://community.glideapps.com/t/if-then-conditional-field-selection-for-components/25505/5 "2021-04-15T12:48:33Z")

</div>

> [@Harry\_OBrien](#):
>
> **Create Template Fields from the frontend app builder.**

Are you aware that this is already possible?

---

<div class="post-metadata">

### Author: ![Harry\_OBrien](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/harry_obrien/32/14485_2.png) [@Harry\_OBrien](https://community.glideapps.com/u/Harry_OBrien)
#### Post date: [April 15, 2021, 12:50pm UTC](https://community.glideapps.com/t/if-then-conditional-field-selection-for-components/25505/6 "2021-04-15T12:50:18Z")

</div>

Not at all! 😅

---

<div class="post-metadata">

### Author: ![Harry\_OBrien](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/harry_obrien/32/14485_2.png) [@Harry\_OBrien](https://community.glideapps.com/u/Harry_OBrien)
#### Post date: [April 15, 2021, 12:52pm UTC](https://community.glideapps.com/t/if-then-conditional-field-selection-for-components/25505/7 "2021-04-15T12:52:23Z")

</div>

I see now! Over on the left hand side, from ‘Data’

Well that is brilliant.

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [April 15, 2021, 12:55pm UTC](https://community.glideapps.com/t/if-then-conditional-field-selection-for-components/25505/8 "2021-04-15T12:55:43Z")

</div>

Shall we close this feature request then, or is some/any of it still applicable?

---

<div class="post-metadata">

### Author: ![Harry\_OBrien](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/harry_obrien/32/14485_2.png) [@Harry\_OBrien](https://community.glideapps.com/u/Harry_OBrien)
#### Post date: [April 15, 2021, 12:56pm UTC](https://community.glideapps.com/t/if-then-conditional-field-selection-for-components/25505/9 "2021-04-15T12:56:12Z")

</div>

Close the damn thing

---

<div class="post-metadata">

### Author: ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)
#### Post date: [April 15, 2021, 12:56pm UTC](https://community.glideapps.com/t/if-then-conditional-field-selection-for-components/25505/10 "2021-04-15T12:56:22Z")

</div>


