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

Question

Question

Laserfiche Forms Field Rules not updating when created by a Workflow

asked on November 18, 2016

I have a workflow that starts a business process. When it creates the form there are field rules that are supposed show and hide the fields to the user based on the information from the workflow. When the user opens the task all the fields are displayed, instead of the ones that are supposed to be hidden. 

 

For example I have two fields: "Location" and "Other Location". If the text in the location field is equal to "Other" then show the "Other Location" field. When the workflow runs it correctly updates the location field with something different then "Other", but the Other Location field is still displayed. If I make any change to the location field. Say add a letter to the end and tab out and then remove the letter, because a change on the Location field occurred the other location field will be hidden.

 

How do I get the fields to change based on the information in the form when it task first loads?

0 0

Replies

replied on November 22, 2016

I can't reproduce the issue as you described. Can you give more information?

  1.   What version of Forms you are using ?
  2. What field types of the Location field ?
  3. The screenshot of the field rule configured
  4. Is there any custom JavaScript added for the two location field?
0 0
replied on November 22, 2016 Show version history

1. We are using LF Forms: 10.1.0.559

2. The Location field is a text field that is read only upon loading. The field is set by a workflow that creates the forms process. 

3. Attached

4. No, only field rules are being used to manipulate the form.

Field Rules.docx (96.69 KB)
0 0
replied on November 23, 2016

I still can't reproduce the issue(http://www.screencast.com/t/JMzaLkW8Sck8). Can you record the issue using https://www.techsmith.com/jing.html?

0 0
replied on November 28, 2016

Attached are three files. The first is a screen shot of the workflow that starts the forms process. The first video shows the workflow starting and the variables that were passed. The location is not set to "Other" or the reason is not set to "Other". The second video shows the form that was created by the workflow both the location and reason fields are correct, but the other location and other reason fields are displayed. The field rules are also displayed. If I change the form from read only to read write if I change the location and/or reason fields the other location/reason fields go away. I believe the field rules are good, but the field rules are only updated with the fields are changed rather than when the forms loads.

WorkFlow.png
WorkFlow.png (117.95 KB)
Form_Rules.swf (3.65 MB)
0 0
replied on December 8, 2016

How do you set the field to read-only, did you checked the "read-only" properties when edit field or use some custom JavaScript to set it? Do you have any customize JavaScript on that form? It may caused by some JavaScript error that cause the field rule not executed. Can you right click the mouse when open the task and select "Inspect element" to open developer tool to see whether there are any JavaScript error from console tab.

Can you work with your VAR by open a support case with your exported process so that we can do trouble shooting for what cause it?

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

Sign in to reply to this post.