Berto2002 Posted November 19 Posted November 19 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: 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: But the bit in red is the Label as per this UI screen: 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. 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.
CraigP Posted November 19 Posted November 19 +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.
Steve Giller Posted November 19 Posted November 19 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.
Berto2002 Posted November 20 Author Posted November 20 I would perhaps then ask for both since I can now see both sides of the coin
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now