I have duplicated this problem in Forms 10.2.1.205 and also 10.2.1.157. I have set a single line field to have the default value of {/dataset/_instance_id}. After the initial submission of the form, the field is not populated with the instance id, but is blank. Is this a bug? The {/dataset/_instance_id} is used to name the instance and it does populate the instance id for the instance name correctly.
Question
Question
Answer
The selected answer is probably not very clear on this. The instance ID does not exist until the form is submitted. After that point, it is available for use in subsequent steps. Forms does not go back to backfill the starting form if you used the instance ID variable in a field on that form.
So the behavior you're seeing is correct. In the starting form Tlog was empty because there was no instance ID at that time. In the next form, you're still not setting Tlog to anything, so you're seeing the "current" empty value.
Replies
I have been trying to do the same thing and have had the same results, so I tried a different tactic. I added the instance ID in the label of a field. When I do that it shows on my form. See screenshots enclosed.
Thanks Roberta,
This worked for me.
Christine
Can anyone tell me why THIS works, on the second form in a process, but filling the field value does NOT work? This is weird. The first form has already been submitted, so the instance ID is there, but it won't populate on the second form in the instance?
Katy, a Field Label is not saving the value. It is simply pulling whatever the current value is for the variable being used. As Miruna mentions above, the value of a field is saved when the form is submitted. Since the instance ID is not created until the initial submission of the form, there is no value to insert into a field variable and it ends up saving an empty value, which carries through the following steps because the "value" has already been set.
So, maybe I can explain better. I submit a starting form. In the task for the "approver" I want to have a field with the instance ID in it. So on form 2 I have Instance ID field with the default value of {/dataset/_instance_id}. But it doesn't show up in form 2. It will show up in the label for form 2, but not the field. It was working before our update to version 11 update 5 (yesterday).
But today...
I got it! The form was in read only mode! Ugh!
I have the same issue. I have defined the default value as {/dataset/_instance_id} for variable TLog.
I submit the form. Then I have a user task using a different form amd I add the variable Tlog to the form. The instance id is not populated on the second form.
The selected answer is probably not very clear on this. The instance ID does not exist until the form is submitted. After that point, it is available for use in subsequent steps. Forms does not go back to backfill the starting form if you used the instance ID variable in a field on that form.
So the behavior you're seeing is correct. In the starting form Tlog was empty because there was no instance ID at that time. In the next form, you're still not setting Tlog to anything, so you're seeing the "current" empty value.
Thank you
That sounds like it's working as expected to me. The fields are saved as they were at submission time, Forms doesn't go back to backfill the value once the instance starts and an instance ID is assigned.
So I would need a secondary form that has the Instance ID field with the default value set in order for it to be populated and assign it to a user task?
Hi
I have the same problem here, but for me sometimes work sometimes don't. Any suggestion Miruna?
Best regards
Hello
I am facing same issue, so what would be the solution?
You would want to make a copy of the initial form and add a field for the instance id and set the default value. Then assign the form to the following user task.
When you say set the default value do you mean select the instance id token variable or actually input a set value?
Yes facing the same problem. I tried to do as you recommended and create a "single line" field and also tried it with the Number field and make "{/dataset/_instance_id} as the default value in both these fields in the initial form When the initial form is submitted, then I assign the the second form to the reviewer and use these same fields to grab the value. On the second form, I tried with the default value still in it and with out the default value in it and it still doesn't display. I have version 10.3.1.553
The instance ID will only be populated after the form has been submitted.
The Instance ID is only Created once your first Form has been submitted as previously stated, I have tried to populate the Instance ID into a Field, however this wont work and the only way that i could set this up was referencing this in Custom HTML, or place it in the description, and use CSS to manipulate it.