Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use validated formula field for current step value #15

Open
jameskbw opened this issue Aug 7, 2023 · 2 comments
Open

Can't use validated formula field for current step value #15

jameskbw opened this issue Aug 7, 2023 · 2 comments

Comments

@jameskbw
Copy link

jameskbw commented Aug 7, 2023

Tried to use the following text formula field for the current step value:
If( ISBLANK(TEXT({!recordId.Contract_Status__c})), "Not Started", TEXT({!recordId.Contract_Status__c}) )

When I ran the flow, I received the following error:
Conditional visibility rule error on currentContractStatusFormula field: Field recordId.Contract_Status__c is a picklist field. Picklist fields are only supported in certain functions. Tell me more.

I've verified the output of the formula is the string I need for the current step.

@egyptguy
Copy link
Collaborator

Hi @jameskbw - interesting, thanks for posting. Your formula seems like proper syntax, but maybe it's not the formula. The error message seems to be about using the formula in a conditional visibility rule for showing/hiding a component on the screen. Are you using it in that way? I ask because the error message doesn't seems related to the functioning of the LWC itself.

@jameskbw
Copy link
Author

I am using a visibility filter on the dynamic flow progress component, but that is not the issue as it's not related to the formula field and it works fine once I change the current step to something other than the formula. The only time I get an error is when I use the formula field in the current step input.

I changed it to a text variable, and that works fine but is less ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants