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

Question

Question

Default value {/_currentuser} in read-only field only works for 3 of 4 fields

asked on January 29, 2018 Show version history

I'm building a Forms process that takes a submission, routes it for managerial review, then routes it to two other reviewers (not in parallel). Each of these events/tasks uses its own form--the submitter submits form 1, the manager reviews/submits form 2, and the two other reviewers use forms 3 and 4 respectively. This is because I need to use {/_currentuser} as a default value in a read-only field at each step (these fields are named "Submitter", "Approving Manager", "Processing Employee" and "Review Employee").

The only difference between forms 3 and 4 is that on form 3, "Processing Employee" has a default value of {/_currentuser} and on form 4, "Review Employee" has a default value of {/_currentuser}. The issue is that when the form hits the second reviewer's inbox (ie, form 4), the "Review Employee" field is empty:

I've tried using JavaScript to set these fields to read-only after document ready, but this doesn't seem to help.

The only issue I can think of, since "Processing Employee" is populated on form 3 and "Review Employee" is (should be) populated on form 4, is that form 4 is causing problems because it was copied from form 3 (since they're exactly the same, other than "Processing Employee" being defaulted with {/_currentuser} on form 3 and "Review Employee" being populated with {/_currentuser} on form 4).

Thoughts?

Thanks!

Rob

EDIT: I ruled out the "copied form has an issue" theory by creating a test form with only the "Processing Employee" and "Review Employee" fields and assigned it to the second reviewer's task. It is still the case that "Review Employee" is not populating.

0 0

Answer

SELECTED ANSWER
replied on January 29, 2018

Solved the issue!

Since the "Review Employee" fields was originally created on the first reviewer form (form 3) without a default value, it basically precluded my using it with a default value on any form later in the process.

After deleting the variable via the Forms designer, I added a new "Review Employee" field to the second reviewer form (form 4) and gave it a default value of {/_currentuser}. I then returned to form 3, added the newly created "Review Employee" field, deleted the default value, and viola! {/_currentuser} was defaulting on the second reviewer form as expected.

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.