# Ajout et affichage par category

**URL:** https://community.glideapps.com/t/ajout-et-affichage-par-category/70686
**Category:** Ask for Help
**Created:** [February 10, 2024, 10:36am UTC](https://community.glideapps.com/t/ajout-et-affichage-par-category/70686 "2024-02-10T10:36:12Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Decouvre\_ta\_destinee](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/decouvre_ta_destinee/32/70702_2.png) [@Decouvre\_ta\_destinee](https://community.glideapps.com/u/Decouvre_ta_destinee)
#### Post date: [February 10, 2024, 10:36am UTC](https://community.glideapps.com/t/ajout-et-affichage-par-category/70686/1 "2024-02-10T10:36:12Z")

</div>

Bonjour,  
J’aimerai remplir le formulaire par catégorie. Je m’explique, j’ai une vue qui montre les différentes catégories de des objets. En cliquant sur une catégorie, j’aimerai afficher les objets de cette catégorie et aussi avoir la possibilité d’ajouter des élements, uniquement de cette catégorie pré sélectionner.  
Merci de votre aide.

---

<div class="post-metadata">

### Author: ![nathanaelb](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nathanaelb/32/43079_2.png) [@nathanaelb](https://community.glideapps.com/u/nathanaelb)
#### Post date: [February 10, 2024, 4:32pm UTC](https://community.glideapps.com/t/ajout-et-affichage-par-category/70686/2 "2024-02-10T16:32:29Z")

</div>

Hello.

Here are 2 possible user experiences:

**With ~~button~~ action**

- Go to the Detail Screen of a category
- Add a ‘Button’ component
- Configure the action of the ‘Button’ component: ‘Show form screen’.
- Source of this ‘Form screen’: objects.
- Add the entry components needed to enter your data.
- Add a ‘Values from screen’ component that acts as a hidden field and automatically passes the category value. Point to the Category column.

**No ~~button~~ action**

- Go to the Detail Screen of a category
- Add a ‘Form container’ component. The idea is the same as above, except that instead of opening a new window, the form is on the same page.
- Configuration of the form container: on the right, the ‘Additional columns’ section acts as default values. Point the Category column of an object to the Category Name column. This turns the category name into a hidden value.

* * *

Bonjour.

Voici 2 expériences utilisateurs possibles :

**Avec ~~bouton~~ action**

- Rendez-vous sur la Detail Screen d’une catégorie
- Ajoutez un composant ‘Button’
- Configurez l’action du composant ‘Button’ : ‘Show form screen’
- Source de cette ‘Form screen’ : les objets.
- Ajoutez-y les composants nécessaires pour entrer vos données.
- Ajoutez un composant ‘Values from screen’ qui fait office de champs caché et qui fait automatiquement passer la valeur de la catégorie. Pointez vers la colonne Catégorie.

**Sans ~~bouton~~ action**

- Rendez-vous sur la Detail Screen d’une catégorie
- Ajoutez un composant ‘Form container’. L’idée est la même que précédemment, sauf qu’au lieu d’ouvrir une nouvelle fenêtre, le formulaire est sur la même page.
- Configuration du ‘Form container’: à droite la partie ‘Additional columns’ fait office de valeurs par défaut. Pointez la colonne Catégorie d’un objet à la colonne Nom de la catégorie. Cela revient à faire passer le nom de la catégorie en valeur cachée.

---

<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: [February 11, 2024, 12:03am UTC](https://community.glideapps.com/t/ajout-et-affichage-par-category/70686/3 "2024-02-11T00:03:34Z")

</div>

You can also add a collection inside the category details view, then add the form as the title action.

---

<div class="post-metadata">

### Author: ![Decouvre\_ta\_destinee](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/decouvre_ta_destinee/32/70702_2.png) [@Decouvre\_ta\_destinee](https://community.glideapps.com/u/Decouvre_ta_destinee)
#### Post date: [February 12, 2024, 4:42pm UTC](https://community.glideapps.com/t/ajout-et-affichage-par-category/70686/4 "2024-02-12T16:42:27Z")

</div>

Excellent, mais je ne trouve pas le composant “Values from screen”. C’est normal

---

<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: [February 12, 2024, 6:11pm UTC](https://community.glideapps.com/t/ajout-et-affichage-par-category/70686/5 "2024-02-12T18:11:24Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/7/475f1a848cd430e8994b3e3c858c699e0518b458.png)

---

<div class="post-metadata">

### Author: ![Decouvre\_ta\_destinee](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/decouvre_ta_destinee/32/70702_2.png) [@Decouvre\_ta\_destinee](https://community.glideapps.com/u/Decouvre_ta_destinee)
#### Post date: [February 12, 2024, 8:45pm UTC](https://community.glideapps.com/t/ajout-et-affichage-par-category/70686/6 "2024-02-12T20:45:58Z")

</div>

Super, j’ai trouvé,  
Une autre question, si je vais affiché les objets selon leurs catégories ? Comment je fais le filtrage ? y a t il aussi le “values from screen” ?

---

<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: [February 12, 2024, 11:53pm UTC](https://community.glideapps.com/t/ajout-et-affichage-par-category/70686/7 "2024-02-12T23:53:18Z")

</div>

You should have two columns to relate between the parent and child tables, then create a relation, and use that relation for your collection.
