Using advanced configuration "Validation" to valid...
# 🤝help
b
Using advanced configuration "Validation" to validate if an email is correctly formatted. Returns log error "Validation action "inline-vld-53f67830e0.js" must return a boolean". How to use the Validation feature in a prompt asking for email?

https://cdn.discordapp.com/attachments/1131505155393732618/1131506644933681342/download.png

l
I have the same issue, did you figure it out yet?
did you return a boolean value? I did and it still doesn't work properly
b
nope sorry. For now I just use this workaround:

https://www.youtube.com/watch?v=xZMQDoaVr1A&ab_channel=VineraAI

bump @cold-motherboard-82208
l
Ok, thank uu
r
@blue-computer-57633 fix coming today!
@blue-computer-57633 this should work now! can you confirm? if not yet for you, can you send me your validation function (screenshot) 🙂 ?
b
I still receive an error that the email is invalid even when it's correctly formatted 😦 I have tried multiple iterations of the code. "generate a regex code to determine if the email address is valid. an email address should be formatted with a string and an at sign followed by a string . com" "generate a regex code to determine if the email address is invalid".

https://cdn.discordapp.com/attachments/1131505155393732618/1133705155846606909/download.png

@rich-battery-69172
a
looks like the code defines a function but doesn't test it. You can add this below the
const emailRegex
line:
Copy code
js
return emailRegex.test(input)
b
Thanks @acceptable-kangaroo-64719 that seemed to work! 🙂
10 Views