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

Question

Question

Forms 10.3 - Instance ID Token Not Showing on Form

asked on December 10, 2018

I used the Instance ID token as the default on a read only single-line field but it isn't pulling in on my submitted form (see screenshots below). Any idea how to make this work?

   

0 0

Answer

SELECTED ANSWER
replied on December 10, 2018

Is this being set on your initial form? If so, then the problem is the following:

  • The form variables are saved on submission
  • The "instance" is not started until after submission, so there is no ID yet

 

Basically, all dataset variables are blank/empty for the first step of a Forms process because nothing has been submitted and there is no active process in which to store the data.

The only way to put the instance ID into a form field would be at some point after the initial submission so that the value exists. Either in another form step, or with a workflow.

0 0
replied on December 10, 2018

That is it exactly! That makes sense. I'll have to figure out how to get it on there with a workflow. Thanks!

0 0
replied on December 10, 2018

In Workflow

  1. Click "View workflow properties" on the right pane
  2. Check the Attribute box for "Started by Laserfiche Forms"
  3. Add a "Set Business Process Variables" activity
    • Configure it to use your workflow server
    • Select your target form
    • Under Fields > Pick your ID variable
    • In "Starting Variable Values" set that field equal the Form Instance ID like

 

 

In your Form's process diagram, add a Workflow Service Task right after the start event, enter the name for the workflow you created, and set it to "Wait for the workflow to finish"

0 0
replied on December 11, 2018

I just gave that a shot, what starting conditions do I use to link workflow/forms?

0 0
replied on December 11, 2018

Workflow starting conditions would not apply in this case. You actually start the workflow with a "Workflow Service Task" in the Forms process diagram.

0 0

Replies

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

Sign in to reply to this post.