# Get value of placeholder

**URL:** <https://community.silverfin.com/t/get-value-of-placeholder/1025>\
**Category:** Exports\
**Tags:** variables, assign, attribute\_placeholde\
**Created:** [June 28, 2018, 5:44am UTC](https://community.silverfin.com/t/get-value-of-placeholder/1025 "2018-06-28T05:44:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julie\_Vandekerckhove](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/julie_vandekerckhove/32/1071_2.png) [@Julie\_Vandekerckhove](https://community.silverfin.com/u/Julie_Vandekerckhove)\
**Post date:** [June 28, 2018, 5:44am UTC](https://community.silverfin.com/t/get-value-of-placeholder/1025/1 "2018-06-28T05:44:02Z")

</div>

I’m spamming the community with my depreciation tabel, sorry about that

Since I’m building my text with the details provided in the investment and depreciation table template I’ve come to the conclusion that the depreciation of the current book year is procesed as a placeholder, leaving the actual variable with no value when you try to use this in another template.  
How can i fix this? Cause the variables are used in the reconciliation “vaste activa”.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![robindeclercq](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.silverfin.com/robindeclercq/32/472_2.png) [@robindeclercq](https://community.silverfin.com/u/robindeclercq)\
**Post date:** [June 28, 2018, 9:16am UTC](https://community.silverfin.com/t/get-value-of-placeholder/1025/2 "2018-06-28T09:16:23Z")

</div>

Hi @Julie_Vandekerckhove,

When you look at the liquid code of the investment and depreciation table, the placeholder\_default for ‘Afschr. dit jaar’ is the variable ‘proposed\_value’.

> {% $10+input detail.custom.dit\_jaar as:currency placeholder\_default:proposed\_value %}

In order to get this placeholder\_default in your code, you can look at how the variable ‘proposed\_value’ is defined in the investment and depreciation table:

> {% assign value\_for\_afschrijving = detail.custom.value %}  
> {% if detail.custom.jr == 0 and detail.custom.jr != blank %}  
> {% assign proposed\_value = 0 %}  
> {% elsif ABS(value\_for\_afschrijving-detail.custom.vorige\_afschr) \> ABS(value\_for\_afschrijving/detail.custom.jr) %}  
> {% if detail.custom.l\_d == ‘D’ and ABS(value\_for\_afschrijving-detail.custom.vorige\_afschr)/detail.custom.jr_2 \> ABS(value\_for\_afschrijving)/detail.custom.jr %}  
> {% assign proposed\_value = (value\_for\_afschrijving-detail.custom.vorige\_afschr)/detail.custom.jr_2 | round %}  
> {% else %}  
> {% assign proposed\_value = value\_for\_afschrijving/detail.custom.jr | round %}  
> {% endif %}  
> {% else %}  
> {% assign proposed\_value = value\_for\_afschrijving-detail.custom.vorige\_afschr | round %}  
> {% endif %}

When you copy this code, the placeholder\_default value (proposed\_value) is also included in your table. In order to make sure the value is shown in your table when the value is not overwritten in the investment and depreciation table, you should assign this value to a variable and further in your code calculate with this variable (instead of ‘detail.custom.dit\_jaar’).

> {% assign variable = detail.custom.dit\_jaar | default:proposed\_value %}

Hope this is clear for you?

Kind regards,  
Robin
