Copy link to clipboard
Copied
Hi
I am sitting here working on understanding how to deactivate fields when other fields is empty (NULL).
I have attached a simple form I am testing on. My goal is to make a bigger form but for testing purposes this attached form is only a small one.
So imagine this form attached is finished and you make it ready for e-signing by adding fields and giving them ownership (prefill and signer)
So the fields to the left (big ones under the text "Tekstfelt") is the ones I want to be set to prefill-fields by the owner of the form. Let us call them textfield1 and the one below textfield2. The point here is that there will be up to 20 textfields like this. And I want the fields under Datofelt (datefield) and Knappefelt (checkbox) to be deactivated if the textfield infront of it is empty (NULL)
I have tried using the "condition" function under the fields themselfs but these fields seem to not wanna play ball.
Example:
Condition is set to Deactivate this field (checkbox1) if one of these condition (textfield1) = NULL
But this does not work and I do not know why? Has it to do with textfield1 being owned by person prefilling and not the signer? Do I have to use javascript to solve this? If so do anyone know how that will work and maybe someone got a script for this already?
If you have any tips let me know.
Yours Sincerely Marius
Copy link to clipboard
Copied
Solved it. I was thinking way too complicated.
Solution:
Activate this field when any of the following conditions textfield1 is not equal and left the textfield blank.
Copy link to clipboard
Copied
Update:
I managed to make it work in a way by making the condition of the textfield to be a text.
Example:
I put this in the field conditions of datefield1 and checkbox1 and datefield2 and checkbox2
Activate this field when any of the following conditions textfield1 contains the word "Test" and then I did the same for line textfield2's datefield and checkbox.
I ran a test and for textfield1 I wrote in Test in the field (prefill) and nothing in textfield2. When I sent the doc to be signed textfield1 had Test in it and its buttons was activated and I could interact with them. But in textfield2 I wrote nothing on the prefill and that had the same condtion (have to contain Test) in it and the buttons was deactivated for that. So my conclusion here is that I need a better way to check if the condition of a field is empty and not look for a text. So anyone know what the empty (null) condition in the field condition feature is? Or is there a way to check if condition is contain any text?
Copy link to clipboard
Copied
Solved it. I was thinking way too complicated.
Solution:
Activate this field when any of the following conditions textfield1 is not equal and left the textfield blank.

