In the PreChatFragment form screen, your library provides a next button located in the toolbar. I don't need that button, instead, I want to hide this next button from the toolbar and add another button in the PreChatFragment layout itself(and not in the toolbar).
I was able to create my custom PreChat screen layout with the button placed just where I want it to be. In addition, I was also able to hide the next button from the toolbar. Now all I need is just assign a click listener to the button that I added to behave the same as the next button that you provide in the toolbar(I may call nextButton.performClick() inside the click listener of my button). My question is how to be able to assign listeners inside the new customized layout for the PreChatFragment. Specifically, I want to assign a click listener for the button that I added.
How can this be achieved?
Please sign in to leave a comment.