Hello
Struggling with the following:
I have 5 reviewers, each reviewers decision is separately logged on the canvas app form, as each reviewer has there own section to complete.
The reviewers are set on Screen2 via the OnVisible property of the screen (a point to note for later, there may not always be 5 reviewers set, sometimes only 2)
Set(Reviewer1,Lbl_Reviewer1.Text);
Set(Reviewer2, Lbl_Reviewer2.Text);
Set(Reviewer3,Lbl_Reviewer3.Text);
Set(Reviewer4,Lbl_Reviewer4.Text);
Set(Reviewer5,Lbl_Reviewer5.Text);
Screen3 is for Reviewer1:
There are 2 scenarios I am capturing here:
if it's approved or rejected via:
Set(Reviewer1DropdownValue, DataCardValue67.Selected.Value)
A toggles OnChange I have this:
If(DataCardValue70.Value = true, Set(FurtherReview, "Sent for further review")
The final screen, I am capturing the above from each reviewer if they were required to do complete a review
Firstly if there are there was not a reviewer set it will display N/A in the text box
If it was approved or rejected then it should take the variable Reviewer1DropdownValue
If it needed a further review the text box should read "Sent for further review".
This works correctly if I dont have 2 conditions i.e. if i was only capturing the approved/rejected status of each reviewer:
If(!IsBlank(Reviewer1), ReviewerDropdownValue, "N/A")
But now I need to capture what I have explained above, so I have been trying the below but doesn't work:
If(!IsBlank(Reviewer1) && !IsBlank(Reviewer1DropdownValue), Reviewer1DropdownValue,
If(!IsBlank(Reviewer1), FurtherReview,
"N/A"))