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

Hot to remove confirm data button #103

Closed
pavelpoley opened this issue Jun 7, 2021 · 1 comment
Closed

Hot to remove confirm data button #103

pavelpoley opened this issue Jun 7, 2021 · 1 comment

Comments

@pavelpoley
Copy link

pavelpoley commented Jun 7, 2021

I don't want any button in the last step

stepper_form
                    .setup(this, listStep as? List<Step<InstructionStep>>?)
                    .includeConfirmationStep(false)
                    .displayCancelButtonInLastStep(false)
                    .stepNextButtonText(getString(R.string.next))
                    .init()

But the "Confirm button" displayed, how to remove it?

@ernestoyaquello
Copy link
Owner

ernestoyaquello commented Jun 8, 2021

I have updated the library to cover this. In the version 2.5.0, you can hide the next button in the last step.

You can do it in code:

...
.displayNextButtonInLastStep(false)
.init()

Or via XML:

app:form_display_next_button_in_last_step="false"

I hope that helps!

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