Jump to content

Workflow Decision Expressions should show the proper references such as <Form ID><Field ID> combo not <Form ID><Field Label>


Recommended Posts

Posted

There's a confusing bit of UI code here which masks the true value being evaluated in an expression. I think it could be improved.

When an Expression is displayed in the Workflow Decision it is in this format:

image.png.33c060957edb9f6383608f91d8a69cbb.png

The bit I want to draw attention to is this: 

“...->customformdefaults->Who is the audience? (raw) contains...”

The bit in green is the Form ID on the ICF as per this UI screen:

image.png.bd19c9e974bfc5958fbdf87f5f4194dd.png

But the bit in red is the Label as per this UI screen:

image.png.12312659a8a0edcf248b54a23c867be6.png

The use of the Label here is inconsistent and inaccurate to list in the Expression criteria; it should be Field ID

The expression uses the Field ID to evaluate, not the Label. Thus, if one alters the Field ID of an ICF but leaves the Label unchanged, the Expression in the Goto If box appears to be right as written but, in the background, the expression will fail because it's looking for a new Field ID.

In order to find the 'real' expression, one needs to hover over the expression. The Form ID is still there but this time, the Field ID being used is revealed.

image.thumb.png.852d733e5c72297b9d30d3e0fcbd070d.png

I would like to see the Field Label replaced with the Field ID in the verbal Expression text so it is much clearer what the expression is evaluating without having to hover, please.

As an aside, because of this issue, the workflow validation before publishing does not fail; presumably it is evaluating the Label (which has not changed), not that there is a non-existent Field ID being referenced.

Posted

+1

Yes please. I recently commented on a post where exactly this seemed to be causing confusion in why a workflow wasn't working as expected.

Posted

Q: If you have 50 questions on a form (especially one you built 2 years ago, or someone else built for you) and you want to identify the relevant one from the Custom Expression, how are you going to achieve this if it's showing the field ID?

A: By individually clicking each question's edit button until you see the field ID you want.

That's why we display the questions, not the ID.

This is not possible with the Form, as the ID is mandatory but not the form prompt.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...