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

Would like to run a function when "finish" is called, but not if "skip" was pressed #293

Open
Saigronas opened this issue Jun 22, 2023 · 0 comments

Comments

@Saigronas
Copy link

Is your feature request related to a problem? Please describe.
I have an issue with the implementation of copilot. My app is separated across several screens, and after several steps on the first screen I would like to perform navigation to the next and continue the guide there. From there som more steps would be run before another navigation and so on.. But I would also like to implement that if user presses skip, no navigation happens and the guide is instead finished.

Describe the solution you'd like
I'd like some sort of event to be triggered that differentiates between if the copilotsteps have been performed to completion on a page, or if the "skip" button was pressed (i.e if all copilotSteps on a page were followed or not). This way you could have differing logic based on this.

Describe alternatives you've considered
I tried using copilotEvents and currentStep to differentiagte, but because currentStep seems to be set to the last step when pressing skip this did not work.

Teachability, Documentation, Adoption, Migration Strategy
Hope this makes sense to anyone reading this :)

@Saigronas Saigronas changed the title Would like to run a function when "finish" is called, but not "skip" Would like to run a function when "finish" is called, but not if "skip" was pressed Jun 22, 2023
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

1 participant