Hi, I am using a FormAction to collect details from the user in UI and passing them as parameters to an API Call which returns a response.
But, after collecting 1st detail, I need to check if it exists in DB. If it exists, I need to display 2 buttons “Get Latest Details” and “Old Details”. Depending on which button the user clicks I need to pass a 5th parameter - “0” or “1” to the API in this case.
How can I achieve this?
I tried to display buttons(to set the slot for the 5th parameter) in the validation function of the 1st detail. But, as soon as the buttons are displayed, the next required slot is being invoked. The bot is not waiting for the user to click one of the buttons.