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

[feat] FlowPath - add conditional logic to be able to move to next step #3

Open
jstukas opened this issue Jan 30, 2023 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@jstukas
Copy link

jstukas commented Jan 30, 2023

In a flow, we have a call out to an external system. While that is running there is a spinner over the fields of the component, but the buttons (Next most significantly) are available to users. If they click next, the flow stops in error. While we can error trapping logic, it would be a better user experience to hide the standard footer and only allow users to move forward once we have a successful reply from the external system.

This could also be based on other conditions of course (only activate a Next button once all required info is entered, for example).

This is currently on Flow roadmap, but > 1 year out, or else this solution looks like it could handle the requirement, https://unofficialsf.com/flow-button-bar-new-and-improved/

@jstukas jstukas added the enhancement New feature or request label Jan 30, 2023
@pegros pegros self-assigned this Jan 30, 2023
@pegros
Copy link
Owner

pegros commented Feb 16, 2023

@jstukas actually the issue is not on this component but on the other one.
this componet should implement the validate() API method (see https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.use_flow_validate_user_input_for_custom_components) to prevent the "next" operation to actually execute.
I may demo a simple implementation for tests if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants