You are viewing limited content. For full access, please sign in.

Question

Question

Instance ID on Starting Form after Form Submission

asked on March 9, 2015

I am looking for a way in Forms 9.2 to access the Instance ID via the starting Form after submission but before saving to Laserfiche.  Essentially I need to do the following:

  1. Form is Submitted
  2. At first Approval Task the form's Instance ID is availalbe via Javascript
  3. Save to Laserfiche

 

I understand I can do this by creating a second copy of the form, passing all of the values from the first form into the second, and then having a field their that shows the instance ID but I am needing to do this without having to maintain 2 almost identical copies of a complex and everchanging form.  I've tried adding a field and setting it's default value to Instance_ID but that fails to fill as it will only fill on form creation and not later once the Instance ID actually exists.  Additionally, I've tried extracting it from the URL but within the Inbox the URL does not contain the Instance ID.  Has anyone found a way to access the Instance ID after form submission within the originally submitted form?

0 0

Answer

APPROVED ANSWER
replied on March 10, 2015 Show version history

There is no easy way to show the instance ID on the form used for both message start event and user task as the default value for the fields will be initialized when the form is used for the first time even the field is hidden with JavaScript. So use two forms is one workaround, another workaround is not to show the instance id on the form when save to repository but use instance_id for a field for save to repository task. 

0 0

Replies

replied on March 9, 2015 Show version history

If you have an approval task inbetween the form being submitted and the form being saved to Laserfiche, you could just add an instance ID field that has a default value set to {/dataset/_instance_id}. It would not populate during the submission, but should fill in correctly during the approval task.

If you wanted to get really fancy, you could also hide the field using a CSS class and setting its value to {display: none;} and then use some javaScript to only show the field if another condition exists.

0 0
replied on March 9, 2015

I had tried that but it only attempts to fill at the time of Form submital and not anytime after that.  Here is the field I added:

and here it is at the first approval step:

It only appears to place default values when the form is first created.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.