# Relations in a form

**URL:** <https://community.glideapps.com/t/relations-in-a-form/39158>\
**Category:** Ask for Help\
**Created:** [March 2, 2022, 7:48pm UTC](https://community.glideapps.com/t/relations-in-a-form/39158 "2022-03-02T19:48:59Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jordan\_Clevenger](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jordan_clevenger/32/39830_2.png) [@Jordan\_Clevenger](https://community.glideapps.com/u/Jordan_Clevenger)\
**Post date:** [March 2, 2022, 7:48pm UTC](https://community.glideapps.com/t/relations-in-a-form/39158/1 "2022-03-02T19:48:59Z")

</div>

Hello,

I am working on an application that automatically progresses and regresses clients based on how difficult an exercise is. To do this I have made exercise “groups” which contain numerous levels corresponding with different exercises. For example a “Bicep Strength” group may have 5 different exercises at 3 sets/reps amount each for a total of 15 levels.

My question is: how can I, as an admin, create a user and select which groups I want that user to be able to see, and then select which level it starts with in each particular group? I am able to get the user info and group info to add via a form but cannot figure out how to choose a particular level once I have selected the groups. It feels like a need a form, inside of a form to first add the groups to a row and then create a relation with those groups so I can choose the level.

Has anyone had a similar problem? Any feedback / tips would be great.

---

<div class="post-metadata">

**Author:** ![Jordan\_Clevenger](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jordan_clevenger/32/39830_2.png) [@Jordan\_Clevenger](https://community.glideapps.com/u/Jordan_Clevenger)\
**Post date:** [March 2, 2022, 7:52pm UTC](https://community.glideapps.com/t/relations-in-a-form/39158/2 "2022-03-02T19:52:46Z")

</div>

Here is a screenshot of my form I’m using if this helps at all:

 ![Screenshot (1)](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/9/4/948aa2157b850dd8065c0bfa682379b233128d58.png)

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [March 2, 2022, 11:50pm UTC](https://community.glideapps.com/t/relations-in-a-form/39158/3 "2022-03-02T23:50:40Z")

</div>

So say you have 15 levels, you can choose for me to start at level 1, level 7 or level 10, something like that?

If you choose level 10 for me, should I be able to view level 1 to 9?

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [March 3, 2022, 12:55am UTC](https://community.glideapps.com/t/relations-in-a-form/39158/4 "2022-03-03T00:55:40Z")

</div>

Sounds like you need what we call a “custom form” which is just text entry components on a details screen that write to user specific columns. Once those columns are filled in you can do computations on them in Glide data editor (relations lookups etc) which you could then use as values when you go to “submit the form” (button with an add row action).

---

<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:** [March 3, 2022, 8:23am UTC](https://community.glideapps.com/t/relations-in-a-form/39158/5 "2022-03-03T08:23:35Z")

</div>

As Bob said, you probably need a Custom Form.  
If that’s a new concept for you, you can check the following:

> [@How do I create a custom form?](https://community.glideapps.com/t/how-do-i-create-a-custom-form/25014):
>
> I’m just dropping this here so I have something to refer people to when they ask. This is a simple concept app (copyable), that demonstrates the following techniques: Building custom forms for adding and editing list items (as an alternative to the native forms provided by Glide) Preventing duplicate new entries using [User Specific Columns](https://docs.glideapps.com/all/reference/data-editor/user-specific-columns) and [Relations](https://docs.glideapps.com/all/reference/data-editor/computed-columns/relation-column) Enforcing mandatory input items The use of visibility conditions and user specific booleans to control user flow There is nothing particula…

---

<div class="post-metadata">

**Author:** ![Jordan\_Clevenger](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jordan_clevenger/32/39830_2.png) [@Jordan\_Clevenger](https://community.glideapps.com/u/Jordan_Clevenger)\
**Post date:** [March 4, 2022, 1:31am UTC](https://community.glideapps.com/t/relations-in-a-form/39158/6 "2022-03-04T01:31:26Z")

</div>

Ya so for example I might have a “Chest Group” with the following levels in my Exercise Directory

- Lvl 1 | Push up | 3x10
- Lvl 2 | Push up | 3x15
- Lvl 3 | Bench Press | 3x10
- Lvl 4 | Bench Press | 3x20
- Lvl 5 | Flys | 3x 15

Since everyone will be at different starting strengths I need to be able to choose, at the very least, which exercise the person will start with. There will be numerous groups as well. Originally I was trying to do two forms back to back where I could select the groups in the first form, which would put it into the user profile row, and then have the other form to select which level a person will start with for each group. Unable to get it to show just the groups that the admin assigned the user.

I could just create a key for each group that appears and then have the admin type in whichever level they want but some groups have 30+ levels so this isn’t the most user friendly.

---

<div class="post-metadata">

**Author:** ![Jordan\_Clevenger](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jordan_clevenger/32/39830_2.png) [@Jordan\_Clevenger](https://community.glideapps.com/u/Jordan_Clevenger)\
**Post date:** [March 4, 2022, 1:34am UTC](https://community.glideapps.com/t/relations-in-a-form/39158/7 "2022-03-04T01:34:09Z")

</div>

As the admin how can I get the users information to carry over? Do I need to change something in my user profile?

---

<div class="post-metadata">

**Author:** ![Jordan\_Clevenger](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jordan_clevenger/32/39830_2.png) [@Jordan\_Clevenger](https://community.glideapps.com/u/Jordan_Clevenger)\
**Post date:** [March 4, 2022, 1:35am UTC](https://community.glideapps.com/t/relations-in-a-form/39158/8 "2022-03-04T01:35:19Z")

</div>

Thank you for sharing. This is the first I’ve heard of custom forms so I will copy the app and learn how to create the custom form.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [March 4, 2022, 1:45am UTC](https://community.glideapps.com/t/relations-in-a-form/39158/9 "2022-03-04T01:45:11Z")

</div>

When doing an “Add row” action, you can select fields from the user profile table.

---

<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:** [March 5, 2022, 2:58pm UTC](https://community.glideapps.com/t/relations-in-a-form/39158/10 "2022-03-05T14:58:26Z")

</div>

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