Hello,
In the disclosure “Settings” in our the legal documents workflow, I added a required input field for the “Scheme annual accounts”.
This field is only visible when the legal form is BV/SRL or NV/SA.
If the field is empty then the disclosure is not reconcilied.
When the legal form of a company is VOF, the field is not shown but the disclosure is not reconcilied because the input for the field is required but this is not needed here.
How can I solve the problem?
Thanks a lot,
Sylvie
Hi @svalais
The required attribute on an input accepts the conditions true or false.
However, it also accepts a variable that contains the value true or false.
So in order to solve this issue, you could make it so that the field is only required when it needs to be.
Let’s say you have a variable required_variable
You can add your conditions:
if legal form is …
{% assign required_variable = true %}
else (in every other case)
{% assign required_variable = false %}
And your input would then look something like this:
{% input custom.my_input.some_text as:integer placeholder:0 required:required_variable %}
Hope that helps!
Kind regards
Romy
Hi @Romy_Vermeeren
I tried with your solution but it doesn’t solve the problem that the reconciliation remains on Unreconciled.
I used the following code:
{% if BV or NV %}
{% assign scheme = true %}
{% else %}
{% assign scheme = false %}
{% endif %}
{% if BV or NV %}
{% t “t_scheme_AA” %}
{% input custom.directors_report.schema required:scheme as:select options:scheme_options option_values:‘1|2|3’ %}
{% endif %}
So if the legal form is not BV or NV, the input field should not be displayed and the reconciliation should have a green ball.
I selected the option “Reconciliation necessary and invalid without data”.
How can I fix the problem?
Thanks a lot,
Sylvie
Hi @svalais
Does the reconciliation have other inputs besides this one?
If you choose Reconciliation necessary and invalid without data, there needs to be input fields because you expect users to always enter some information.
When all your inputs have a default value, this could be an issue since technically users do not need to actually enter any new data!
You could change the type to Reconciliation necessary but also valid without data if that’s the case.
KR
Romy