How can handle wrong responses ?
# 🤝help
t
I have this Node, is there a way to handle it if a user writes a correct response? The questions are simple, but I do not want to allow the user to write non-fluent text or add numbers, special characters, and more. https://cdn.discordapp.com/attachments/1223686929388667171/1223686929527214160/image.png?ex=661ac243&is=66084d43&hm=7da989abf27b56bbe7668ed45b482666a2d0fa0ab23434a04b5aa6a18cc0f368&
g
What do you mean by right or wrong answers ?
t
@glamorous-guitar-39983 those are some questions like “what food are u preferring” or what food you can not eat, i want user to not be allowed to write at those questions some text like “(:8:)/7/)yaihgyin” or smt like this
I need somehow to prevent it
Hope now is clear
g
You can't prevent them from typing and sending it, but you can force them to reanswer the question by setting up retries
Note that some cards discard some types of text, and others don't, because they have different purpose
t
I see
Ohh…maybe if I use some AI task to check if code means smt … ?
g
I don't think you can but I would still use the retrie feature
g
I personaly never used validation lol but I should look into it
t
Me either
I will
I will check out even retrie feature
@fresh-fireman-491 @glamorous-guitar-39983 if user write some weird text you just handle using what we’ve spoken up ?
g
Tbh the retry doesn't work very well with the raw input card
But it pretty much works well with other cards like number, price, etc
@fresh-fireman-491 could probably give you better ideas on how to solve that 😄
f
You could use the validate to check if the text contains some weird characters
t
i will try