on the profile widget, if a user updates phone num...
# ask-a-descoper
a
on the profile widget, if a user updates phone number to same number the flow fires off the verify with otp, I want to stop this and only proceed if the number really changes
✅ 1
c
Hey Anson - you an check the
form.phone
field in a condition and compare to
user.phone
or
unauthUser.phone
(phone may not be the right key, but it will auto populate) and if they match - go a different route in the flow.
a
I added a condition after the user hits "Save" . The condition always hits the else statement and proceeds to the OTP step.
c
Matches is for regex
Use equals
@Burr Webb can you make a quick demo flow?
a
I have tried equals, matches , contains it all goes straight to the else statement and continues the flow.
On a side note if you select edit and click Save with no changes the OTP still fires
b
Hi Anson - Allow me to catch up a bit, and I will respond shortly
a
Sure no problem, its all good.
b
Hi @Anson Geisel - would you mind sharing an export of your flow here that I can import on my end? Thanks!
Before you do that: In your conditional task, can you wrap
user.phone
in
{{ }}
so it would look like
{{user.phone}}
, and try it that way (while using
equals
as your operator)?
a
still the same result.
c
Try uploading this set phone flow - the problem is that there's a
-
in the form.phone field so it doesn't exact match, I used a scriptlet to parse that out.