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

Question

Question

Field rule not applying after workflow populates fields with blank values

asked on July 23, 2024 Show version history

If you use a workflow to invoke a business process, and the variable populations are blank, they will not be treated as blank by field rules present.

 

I originally thought that the CSS was being ignored by the field rule when invoked by a workflow, but after further trouble shooting, I saw that there was a very large amount of white space inside of my form when placed into the repository. This white space is actually my single line values that were supposed to be removed from the form with the field rule I attached below.

 

It seems like Laserfiche forms can't recognize a field as blank if it was populated with a blank value from a workflow.

fieldRule.PNG
workflowValuePopulation.PNG
theForm.PNG
PreviewCorrect.PNG
FieldRuleIgnored1.PNG
FieldRuleIgnored2.PNG
fieldRule.PNG (92.38 KB)
theForm.PNG (11.84 KB)
0 0

Answer

SELECTED ANSWER
replied on July 23, 2024

You could try applying the NULL formatting option on the tokens.

Although blank is effectively the same as empty with regard to input fields on the client side, null and empty are not equivalent from an application perspective (i.e., '' != null).

Token Formatting--Empty Tokens (laserfiche.com)

1 0

Replies

replied on July 23, 2024

could you post a screen shot of your field rule? I will test this out on my end too

0 0
replied on July 23, 2024 Show version history

When attempting to redo the bug I realized I was wrong on what was causing the issue. Thank you for looking into it, it seems like the issue lies between how Workflow interacts with Laserfiche forms.

 

I have updated the discussion.

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

Sign in to reply to this post.