# Change name field in disclosure

**URL:** <https://community.silverfin.com/t/change-name-field-in-disclosure/2267>\
**Category:** Templates\
**Created:** [April 1, 2022, 7:33am UTC](https://community.silverfin.com/t/change-name-field-in-disclosure/2267 "2022-04-01T07:33:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![svalais](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/svalais/32/2422_2.png) [@svalais](https://community.silverfin.com/u/svalais)\
**Post date:** [April 1, 2022, 7:33am UTC](https://community.silverfin.com/t/change-name-field-in-disclosure/2267/1 "2022-04-01T07:33:09Z")

</div>

Hello,

In a disclosure I used the following code {% input period.custom.feed\_forward.Activiteit as:text placeholder:’’ %}.

Problem is when we will copy the data from a previous year in the disclosure this field is not filled in.

I can solve the problem by changing the code into {% input custom.feed\_forward.Activiteit as:text placeholder:’’ %} but if I do so the existing input will be lost.

How can I avoid this problem without creating a new disclosrure?

Thanks a lot,

Sylvie

---

<div class="post-metadata">

**Author:** ![agustin](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/agustin/32/1207_2.png) [@agustin](https://community.silverfin.com/u/agustin)\
**Post date:** [April 1, 2022, 2:24pm UTC](https://community.silverfin.com/t/change-name-field-in-disclosure/2267/2 "2022-04-01T14:24:03Z")

</div>

Hi @svalais,

I assume by your question that you are working on a Text Document rather than on a Reconciliation.

If that’s so, you are right that you cannot copy data from one period to another, and because you are using `period.` in the input field, the data is only attached to that period.

Also, with the new approach ( `custom.feed_forward.Activiteit` ), this will not imply that the data can be copied over from one period to another, rather that the data will be the same for every period. A subtle different, since if you change it in one period you would be modifying it in all of them.

Having said that, I don’t see a straightforward solution to make the switch, since you probably don’t know in which period you have data right now ? So this is the work-around that I came up: creating a loop to check which is the latest period that your input field has information stored in it, and then use `period.custom.feed_forward.Activiteit` of that period as a default for the new `custom.feed_forward.Activiteit`.

```auto
Old input: {% input period.custom.feed_forward.Activiteit as:text placeholder:’’ %}

{% for i in (1..100) %}
  {% capture minus_p %}minus_{{ INT(i) }}p{% endcapture %}
  {% assign default_text = period.[minus_p].custom.feed_forward.Activiteit %}
  {% if default_text != blank %}
    {% break %}
  {% endif %}
{% endfor %}

New input: {% input custom.feed_forward.Activiteit as:text placeholder:’’ default:default_text %}

```

You can play around with this and check if this could be a possible solution 🙂

---

<div class="post-metadata">

**Author:** ![svalais](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/svalais/32/2422_2.png) [@svalais](https://community.silverfin.com/u/svalais)\
**Post date:** [April 6, 2022, 10:04am UTC](https://community.silverfin.com/t/change-name-field-in-disclosure/2267/3 "2022-04-06T10:04:09Z")

</div>

Hi Agustin,

No this is a reconciliation.

When I change the code from period.custom.feed\_forward.Activiteit to custom.feed\_forward.Activiteit I can copy the data when I open the reconciliation and click on Copy Data.

But if I do this, the current data in the field period.custom.feed\_forward.Activiteit will be empty.

This is wat we not will and we also not will to create a new reconciliation because we will not lose the info already available in the reconciliation.

How can I resolve this problem?

Thanks a lot,

Sylvie

---

<div class="post-metadata">

**Author:** ![svalais](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/svalais/32/2422_2.png) [@svalais](https://community.silverfin.com/u/svalais)\
**Post date:** [April 6, 2022, 10:15am UTC](https://community.silverfin.com/t/change-name-field-in-disclosure/2267/4 "2022-04-06T10:15:33Z")

</div>

Hi Agustin,

I have resolved my problem with your code.

Thanks a lot,

Sylvie

---

<div class="post-metadata">

**Author:** ![agustin](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/agustin/32/1207_2.png) [@agustin](https://community.silverfin.com/u/agustin)\
**Post date:** [April 6, 2022, 10:58am UTC](https://community.silverfin.com/t/change-name-field-in-disclosure/2267/5 "2022-04-06T10:58:22Z")

</div>

That’s great 🙂

Since you mentioned you are working on a Reconciliation rather a Text Document. I think there is another way (and simpler) to accomplish something similar.

```auto
Old input: {% input period.custom.feed_forward.Activiteit as:text placeholder:’’ %}
New input: {% input custom.feed_forward.Activiteit as:text placeholder:’’ default:custom.feed_forward.old_input %}
{% rollforward period.custom.feed_forward.Activiteit custom.feed_forward.old_input %}

```

You could rollforward your original input to a new one that’s it is not linked to `period`, and then use that one as default of the new input.  
That way, the data will be taken from the period selected when copying data. I would use something like this in a reconciliation.

You can give it a try as well!
