# Nommer un nouveau champ dans les Coordonnées de l'entreprise

**URL:** <https://community.silverfin.com/t/nommer-un-nouveau-champ-dans-les-coordonnees-de-lentreprise/28>\
**Category:** Templates\
**Tags:** input, list\
**Created:** [January 25, 2017, 3:14pm UTC](https://community.silverfin.com/t/nommer-un-nouveau-champ-dans-les-coordonnees-de-lentreprise/28 "2017-01-25T15:14:19Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![s.devers](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/s.devers/32/38_2.png) [@s.devers](https://community.silverfin.com/u/s.devers)\
**Post date:** [January 25, 2017, 3:14pm UTC](https://community.silverfin.com/t/nommer-un-nouveau-champ-dans-les-coordonnees-de-lentreprise/28/1 "2017-01-25T15:14:19Z")

</div>

Bonjour,

Nous avons ajouté une colonne dans les Coordonnées de l’entreprise afin de préciser si c’est “Monsieur / Madame / Mademoiselle / Société”. Cela doit nous permettre de personnaliser plus facilement les PV et rapports (en français, possibilité de mettre les termes au féminin par exemple).

Nous avons donc une liste déroulante pour chaque nouvelle personne introduite dans la liste.

Le problème est que je ne sais pas récupérer cette information dans les autres rapports. Il faudrait pouvoir lier le résultat de la liste déroulante au nom de la personne. Sinon impossible pour moi de le récupérer dans les autres rapports (il récupère éventuellement mon champ “person.custom.civility” mais affichera d’office le premier résultat de la liste partout).

J’ai regardé comment les modèles récupéraient par exemple le nombre d’actions, mais on se contente de récupérer l’entièreté de la liste via {% for shareholder in period.shareholders %}.

Merci d’avance,

---

<div class="post-metadata">

**Author:** ![Tim](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/tim/32/1304_2.png) [@Tim](https://community.silverfin.com/u/Tim)\
**Post date:** [January 26, 2017, 10:13pm UTC](https://community.silverfin.com/t/nommer-un-nouveau-champ-dans-les-coordonnees-de-lentreprise/28/2 "2017-01-26T22:13:25Z")

</div>

Hi @s.devers

Can you share your code in how you added the title for the person? I’d suppose it would be something like

```auto
   {% for shareholder in period.shareholders %}
   {% input shareholder.custom.title as:select options:"Monsieur|Madame|Mademoiselle|Société" %}
   {% endfor %}

```

At least that would give you an easy way, in the other templates you would also be able to use `shareholder.custom.title`

If you’re making a select out of the names, you could also already append the title to the name.

---

<div class="post-metadata">

**Author:** ![Axel](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Axel](https://community.silverfin.com/u/Axel)\
**Post date:** [January 27, 2017, 10:14am UTC](https://community.silverfin.com/t/nommer-un-nouveau-champ-dans-les-coordonnees-de-lentreprise/28/3 "2017-01-27T10:14:47Z")

</div>

The fact is that we don’t get how to call the ‘person.custom.title’ in another document, ex:

_In ‘ **Company details** ’:_  
`{% fori person in period.people %} {% input person.name %} | {% input person.custom.title as:select options:"Monsieur|Madame|Mademoiselle|Société" %} {% endfori %}`

_In ‘ **Any minutes** ’:_

`{% capture manager_options %}{% for manager in period.directors %}{{manager.name}}{% unless forloop.last %}|{% endunless %}{% endfor %}{% endcapture %}`

`The meeting was opened at {{time}} with {{person.custom.title}} {{% input period.custom.president.name as:select options:manager_options %}}`

---

<div class="post-metadata">

**Author:** ![Tim](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/tim/32/1304_2.png) [@Tim](https://community.silverfin.com/u/Tim)\
**Post date:** [January 28, 2017, 8:54am UTC](https://community.silverfin.com/t/nommer-un-nouveau-champ-dans-les-coordonnees-de-lentreprise/28/4 "2017-01-28T08:54:06Z")

</div>

Ok, that’s clear. It’s correct, when you create the select, you don’t really have the object ‘person’ you just have the actual name of the person. An easy fix for this would be that you make the select with the title included, so for example

```auto
{% capture manager_options %}{% for manager in period.directors %}{{manager.custom.title}} {{manager.name}}{% unless forloop.last %}|{% endunless %}{% endfor %}{% endcapture %}

```

So instead of selecting the name, you would select the title and name at once.

---

<div class="post-metadata">

**Author:** ![Axel](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Axel](https://community.silverfin.com/u/Axel)\
**Post date:** [January 30, 2017, 8:08am UTC](https://community.silverfin.com/t/nommer-un-nouveau-champ-dans-les-coordonnees-de-lentreprise/28/5 "2017-01-30T08:08:31Z")

</div>

Thanks @Tim, it works that way !

---

<div class="post-metadata">

**Author:** ![sven](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/sven/32/1495_2.png) [@sven](https://community.silverfin.com/u/sven)\
**Post date:** [April 3, 2017, 3:02pm UTC](https://community.silverfin.com/t/nommer-un-nouveau-champ-dans-les-coordonnees-de-lentreprise/28/6 "2017-04-03T15:02:06Z")

</div>


