Hi Experts,
In my app, i've put my test email address in a text box called Commercial1 and the same email address in a text box called Stage1Approver1. DataCardValue50 currently contains the text "Submitted", my code below, should take my test account to a screen named Stage1Approval because DataCardValue50.Text is "Submitted" and the user.Email is in Stage1Approver1.Text but when I click the button, it's taking me to Screen1 instead, can you advise where my code is wrong please?
With(
{wEmail: User().Email},
If(
DataCardValue50.Text = "1st Stage Approved" &&
wEmail in TechSales1.Text || wEmail in TechSales2.Text ||
wEmail in Commercial1.Text || wEmail in Commercial2.Text ||
wEmail in Sales1.Text || wEmail in Sales2.Text ||
wEmail in 'R&D1'.Text || wEmail in 'R&D2'.Text ||
wEmail in QHSE1.Text || wEmail in QHSE2.Text ||
wEmail in Production1.Text || wEmail in Production2.Text ||
wEmail in Compliance1.Text || wEmail in Compliance2.Text ||
wEmail in IT1.Text || wEmail in IT2.Text,
Navigate(Screen1),
DataCardValue50.Text = "Submitted" &&
wEmail in Stage1Approver1.Text || wEmail in Stage1Approver2.Text ||
wEmail in Stage1Approver3.Text || wEmail in Stage1Approver4.Text,
Navigate(Stage1Approval)
))
Thanks in advance!
Dave