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

Ability to remove the "continue" button and self complete/close the step from the step itself #107

Open
Shinitorix opened this issue Feb 5, 2022 · 2 comments

Comments

@Shinitorix
Copy link

Hi!
In my scenario I have a custom button which does custom actions like take picture or something similar.
For this reason I would like to remove the "continue" button from my steps and self complete/close the step on button click.

Is it possible to do it? I didn't find a proper way
Thanks!

@MartinMbae
Copy link

I am also looking for such a functionality. Did you find a workaround

@MartinMbae
Copy link

MartinMbae commented Apr 22, 2022

I have found a way to do it.

In your stepperFormBuilder add

.displayStepButtons(false)
.init()

The above will hide the default next button in the steppers.

You can now add your custom next button and add onclick listener to the button like

binding.nextButton.setOnClickListener {
            formView.goToStep(1, true)
        }

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