Can capture cards with questions be optional?
# 🤝help
h
Hi all, In my flow, there are mandatory and optional questions. For those that are optional, I'd love the following logic: 1. If a user enters the cancel intent (cancel, pass, skip, next...) -> leave the variable blank -> move to the next card 2. If a user enters any data besides cancel intent -> store it in the variable -> move to the next card. Is it possible at all? I've been struggling to work it out. Thanks in advance!
b
Hi @happy-state-48730 I am making an example to help you 😉
h
Oh great!
@billowy-morning-42410 I already made a workaround, I ask a user if they want to fill the data. So if not - they'll skip to the following question, if yes - then they'll drop into a card with captures the optional info. Sounds dummy, but works. If there is some smarter way - excited to see it
b
good to hear that, let me see if we can do it without the "if you want to fill out the data" question.
h
Much appreciated @billowy-morning-42410 !
b
@happy-state-48730 I tried to do it in several ways, however I don't know if you know that a Raw Input can also have single choice, so I wanted to stop using intents because I don't know the nature of the responses and knowing it better I could develop some intents or transitions accordingly. Now knowing that I can place single choices in raw inputs you can define there Next or GoBack buttons for example.
in production, the word Next paints a nice button, even in this example you have the possibility to answer the previous one back since I placed another button called "Go Back" the important thing is the control node that evaluates the answers and makes them null, or empty as the case may be, you must know that hitting Next makes the variable equal to "Next" so you must cancel it in the control card.
I could do something with IA transition as well but you have to granularize your configuration to avoid false positives.
Raw Input with Single choice opens up many possibilities 👇🏻 You can add it in the advanced settings of the raw input
So if you simply click Next without adding any input you move on to the other node (the only novelty is that the variable becomes "Next", but that is filtered at the end in your control node 😉 ).
And if you get to a question that is obligatory, just remove the single choices there.
you can add back, next, ignore, cancel, etc. under your question, remember it is a raw input with single choice, not a raw input and a single choice
h
Looks great, thank you @billowy-morning-42410. I'll play with it later today. Really appreciate this 🙂
b
Well anything let me know, seeing your case now I am trying to do it strictly as a form wizard for educational purposes as there are little things there that must be thought well, for example a raw input with single choice would need to hit enter to grab the value of the input but if I want to hit next I also want it to take the value of the input. But well you get the idea
h
Got it, thank you!
Hey @billowy-morning-42410 did your flow with the control card. All works great, the flow is cleaner with less questions. Thanks for the help 🤙
3 Views