You need to sign in to do that
Don't have an account?

Flow builder validation
Hello - Hoping someone can help out with a validation rule that's not working in flow. I have a screen elment with a text field called "Last_Name_1" and a text field called "Phone_1". If the last name is not blank, there must be a phone number. I cannot get the vaidation rule to fire. I tested the same validation rule on the object fields and it works as expected. Below is my validation rule.
AND(
NOT(ISBLANK({!Last_Name_1})),
ISBLANK({!Phone_1}))

AND(
NOT(ISBLANK({!Last_Name_1})),
ISBLANK({!Phone_1}))
ISBLANK validation rule in a flow (https://success.salesforce.com/answers?id=90630000000Zhh2AAC)
As a workaround, you can add a decision after this screen and check the validity there. If it's invalid, redirect to a new error screen displaying the error message 'Please enter a phone number' and just give the Previous navigation option on the error screen (No Next/Finish).
All Answers
Just replace your input validation formula with this:
Used "IF" operator which has three parameters (Logical condition, the value returned when the condition is true, the value returned when the condition is false)
https://help.salesforce.com/articleView?id=customize_functions_i_z.htm&type=5 (https://help.salesforce.com/articleView?id=customize_functions_i_z.htm&type=5)
Actually, we write the formula for error condition=true in validation rule but here in Flow input validation, we need to write error condition=false in order to make the validation work.
https://developer.salesforce.com/docs/atlas.en-us.salesforce_vpm_guide.meta/salesforce_vpm_guide/vpm_designer_elements_screen_val.htm
Let me know if you have any issues.
ISBLANK validation rule in a flow (https://success.salesforce.com/answers?id=90630000000Zhh2AAC)
As a workaround, you can add a decision after this screen and check the validity there. If it's invalid, redirect to a new error screen displaying the error message 'Please enter a phone number' and just give the Previous navigation option on the error screen (No Next/Finish).