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

Question

Question

Fields holding onto data and not refreshing upon submission

asked on January 31, 2019

We have a forms process that requires an approved person to review work before it can be submitted.

Currently we are using a read only mandatory box that will auto fill with approved after it has checked the below for the current instance ID: Using a lookup Rule.

  1. Has the person been involved in any named process steps (Such being the initiator, or completed the further review needed step) as a user is unable to approve their own work.
  2. Is the user on the list of approved individuals

 

This will then auto fill the read only mandatory box with approved granted the criteria are met. if the approver has submitted the form this box remains blank and they are unable to click the submit button.

 

The issue I am currently having is if the approved individual sends the form back for further review and completes this step themselves

when the form is then resubmitted for review the Mandatory read only box still contains the approved text. We have checked and the lookup rule is working correctly in the background and returning blank but the field just seems to hold onto the previous data and not update

 

Thanks

 

Mark

 

0 0

Answer

SELECTED ANSWER
replied on January 31, 2019 Show version history

Have the field clear when the form loads using javaScript:

 

//on load clear the value
$('.yourField input').val('');

^assign your field a class in the 'advanced' tab of the field. swap that out with "yourField" in the above code.

Place this on every form that you need to clear the value on load. Let me know if you need a hand.

Cheers,

Chris

 

2 0
replied on February 1, 2019

This worked perfectly Thank you!

1 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.