# Default values for USC's

**URL:** <https://community.glideapps.com/t/default-values-for-uscs/60044>\
**Category:** Ask for Help\
**Created:** [April 2, 2023, 8:21pm UTC](https://community.glideapps.com/t/default-values-for-uscs/60044 "2023-04-02T20:21:08Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![charlietmail](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/charlietmail/32/55259_2.png) [@charlietmail](https://community.glideapps.com/u/charlietmail)\
**Post date:** [April 2, 2023, 8:21pm UTC](https://community.glideapps.com/t/default-values-for-uscs/60044/1 "2023-04-02T20:21:09Z")

</div>

I’ve made an app that lets the user adjust bread recipes, so I’m using user-specific columns for ingredient quantities. This means recipes are initially empty so I’ve created a button with conditional Set Column Values to populate fields with defaults.

Is this the best way to achieve this?

> **[Bread Calculator](https://bread-calculator.glide.page)**

---

<div class="post-metadata">

**Author:** ![gvalero](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gvalero/32/1037_2.png) [@gvalero](https://community.glideapps.com/u/gvalero)\
**Post date:** [April 2, 2023, 8:32pm UTC](https://community.glideapps.com/t/default-values-for-uscs/60044/2 "2023-04-02T20:32:44Z")

</div>

Well, I see it fine and understandable!

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 2, 2023, 9:23pm UTC](https://community.glideapps.com/t/default-values-for-uscs/60044/3 "2023-04-02T21:23:30Z")

</div>

What you could do is change the action on your your collection to a custom action that uses a Set Column action to first load the default ingredients before the Show Details Screen actions. You could further enhance it by adding a condition to first check if any values are set. If values already exist, then just show the detail screen. if values do not exist, then set columns before showing the details screen.

That way you can get rid of the button and it will be handled automatically.

---

<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 3, 2023, 1:34am UTC](https://community.glideapps.com/t/default-values-for-uscs/60044/4 "2023-04-03T01:34:44Z")

</div>

You could do it as part of the action on the collection on the main page, then you wouldn’t need the button on the next page.

Make a conditional action that checks if the User Specific Columns are empty, and if they are then load the defaults before navigating to the collection item.

Edit: oh duh, I didn’t even see Jeff’s reply, hahaha. 🤪

---

<div class="post-metadata">

**Author:** ![charlietmail](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/charlietmail/32/55259_2.png) [@charlietmail](https://community.glideapps.com/u/charlietmail)\
**Post date:** [April 3, 2023, 6:55am UTC](https://community.glideapps.com/t/default-values-for-uscs/60044/5 "2023-04-03T06:55:38Z")

</div>

Thanks @Jeff_Hager and @Darren_Murphy!

---

<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 3, 2023, 7:10am UTC](https://community.glideapps.com/t/default-values-for-uscs/60044/6 "2023-04-03T07:10:44Z")

</div>

At least we didn’t give you conflicting advice 🤣

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 3, 2023, 12:12pm UTC](https://community.glideapps.com/t/default-values-for-uscs/60044/7 "2023-04-03T12:12:02Z")

</div>

Great minds think alike!

---

<div class="post-metadata">

**Author:** ![charlietmail](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/charlietmail/32/55259_2.png) [@charlietmail](https://community.glideapps.com/u/charlietmail)\
**Post date:** [April 3, 2023, 8:10pm UTC](https://community.glideapps.com/t/default-values-for-uscs/60044/8 "2023-04-03T20:10:37Z")

</div>

Done exactly as suggested - thanks again both

> **[Bread Calculator](https://bread-calculator.glide.page/)**

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [April 4, 2023, 8:10pm UTC](https://community.glideapps.com/t/default-values-for-uscs/60044/9 "2023-04-04T20:10:39Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
