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

Question

Question

Is there a way to refresh the Process Variables on a form?

asked on February 28, 2024

For example, I have a field called "Last Approver". I have it set to capture the name of current user assigned to the task. 

The value has to be updated every time there is an action on the form. Is there a way to refresh this variable using JavaScript or something?

Thank you!

0 0

Replies

replied on February 29, 2024

I'm assuming you are filling this field with the default value option in the field's settings. Default value will only be overwritten when it is empty on form load so this would not be able to be set via JS.

You have two options

  1. Clear the field when you are done using it in Workflow
  2. Use a table instead of a single field, and the option "A data source, variable, and/or users can add rows up to the maximum." with 1 min and 1 max
    1. This way every time the form loads a new submission the new row is filled with the user that will submit it's username/email/etc
    2. Wherever you need this information just be sure to pull the last row's data for the "Last Approver"

 

0 0
replied on February 29, 2024

Thanks Zachary! I actually figured out another way using Salah's method https://answers.laserfiche.com/questions/134033/Set-a-Field-to-the-Current-User#174543

 

 

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

Sign in to reply to this post.