Signature in text document

Hello,

I have made a text template in which the directors have to put their signature at the bottem.
Depending, one or more signatures are required.

I am getting this :

image

There are no names showed.
What am I doing wrong?

I used this code :

{% assign aantal_zaakvoerders = count %}
{% if aantal_zaakvoerders > columns %}{% assign aantal_kolommen = columns %}{% else %}{% assign aantal_kolommen = aantal_zaakvoerders %}{% endif %}
{% stripnewlines %}
{% newline %}
|{% for i in (1…aantal_kolommen) %}----{{ 100/aantal_kolommen | integer }}%------|{% endfor %}+
{% newline %}
|
{% for signature in zkv_signatures %}
{{ signature }}
|
{% assign modulo = forloop.index | modulo:2 %}
{% if modulo == 0 %}
{% unless forloop.last %}
{% newline %}
|
{% newline %}
|
{% newline %}
|
{% newline %}
|
{% endunless %}
{% endif %}
{% endfor %}
{% newline %}
|
{% newline %}
|
{% endstripnewlines %}
{% endunless %}

Silverfin was always giving me an error with the endunless too.

Thank you!

Hi Ellen!

Thanks for your message.

I’ve noticed a couple of things here:

  1. The {% endunless %} tag at the bottom of your code doesn’t seem to have an opening? I wondered whether this is part of something else or should this not be there completely?

  2. I can’t see that the variable/array zkv_signatures has been specified in the code fragment you sent over.

  3. I also couldn’t see the variables count and column assigned

Could you double check the above and then try again :slight_smile: let me know how you get on!

Thanks
Kalpna

I’m totally lost :slight_smile:

Let me try with this code (sorry for changing the code):
First line = text
Second line = date
Third line and next = signatures

Bijgevolg beslist het bestuursorgaan over te gaan tot de effectieve uitbetaling van het dividend.

Opgesteld op {% input custom.asset.date as:date %}

{% unless show_no_options %} {% comment %}signatures cannot be shown if no date is known{% endcomment %}

{% assign columns = 2 %}
{% assign aantal_zaakvoerders = count %}
{% if aantal_zaakvoerders > columns %}{% assign aantal_kolommen = columns %}{% else %}{% assign aantal_kolommen = aantal_zaakvoerders %}{% endif %}

{% stripnewlines %}
{% newline %}
|------
{% for i in (1…aantal_kolommen) %}
----{{ 100/aantal_kolommen | integer }}%------|
{% endfor %}
+
{% newline %}
|
{% for signature in zkv_signatures %}






{{ signature }}
|
{% assign modulo = forloop.index | modulo:2 %}
{% if modulo == 0 %}
{% unless forloop.last %}
{% newline %}
|
{% endunless %}
{% endif %}
{% endfor %}
{% newline %}
|

{% endstripnewlines %}

{% endunless %}

Hi Ellen,

Oh no! Let me try and break it down a little for you.

Point 2 from my previous message:
{% for signature in zkv_signatures %}

I can’t see the array or variable “zkv_signatures” has been specified.

For example, I would expect zkv_signatures to be assigned with the various directors names, further information can be found here for you: Array

You may also find this case useful, where we specified the “names” array and later we displayed all names from this array. Details statutory auditor

Let me know how you get on :slight_smile:

I just want to become this at the bottom of my text :

image

Hi Ellen,

I’ve spoken with some of our other developers and it looks like you are looping over zkv_signatures.

However, if you haven’t created that before, there won’t be any names within here to display.

Could you please check whether this has been assigned?

You will need this code

{% assign zkv_names = names | split:"|" %}
{% assign zkv_keys = keys | split:"|" %}
{% assign zkv_signatures = signatures | split:"|" %}

Thanks!