https://discord.gg/botpress logo
Extra space in UI when leaving user question empty...
# 🤝help
m
Hi, leaving the "Question to ask the user" field in Capture information creates an extra space in the UI, as shown in the screenshot. How do I get rid of this? https://cdn.discordapp.com/attachments/1255968186449268798/1255968186919157813/image.png?ex=667f0f06&is=667dbd86&hm=2d6b8d9025b798df1ca2f5419b8f4d15fb25f509d39bb25b70350c1223f98aeb&
w
you can just include your "greetings" inside of the single choice card instead of a text card at the beginning
m
But here the single choice serves like "main menu" in my case. I don't want to show greetings each time I return to the main menu.
w
ah okay
e
I tested it both with and without text and got the same result as you. It would be nice to have the option to include or exclude a question inside the card, keeping it optional to allow for specific cases as you currently have. I can suggest a workaround for this specific scenario if you'd like. In the question to ask the user, you can use text or a variable. In your case, use a variable with the greeting as the default value. Once the user enters the flow and selects a menu option, modify the value of that variable with generic text that introduces the menu for the next interaction. This way, the first time you greet the user, and the next times, you present the menu. It's always a good practice to introduce options anyway, but I understand that the text must differ. I hope this helps you solve your problem.
w
you could use some css, along with js
Maybe it would be a little bit tricky but that can work
m
Thank you @early-shoe-82728, I'll try the workaround. However, it would have been better, if there is an option to turn off the "question to ask user" field.
@wooden-beard-40210 Sure, this definitely needs some extra effort. Will try it out.
w
me too