cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tapesh
Responsive Resident
Responsive Resident

IF Statement not working as expected

Hi  All 

 

im trying to do something using if statement, 

such that if both the value are equal only then submit the form else show error. it seems like the formula i have used is correct but it still does not work, 

 

please see the formula 

If ( DataCardValue58.Text = Dropdown2.SelectedText.Value, SubmitForm(EditForm4), ErrorMessage53); Navigate(SuccessScreen);

 

also the screenshot for the value entered 

Display.png

1 ACCEPTED SOLUTION

Accepted Solutions
Tapesh
Responsive Resident
Responsive Resident

Thanks, Sir, THis helped me a lot, there was a slight change in your answer which i just noticed, 

 

That navigation of the screen was done after the if statement is executed, which I corrected by your guidance. Thanks 

 

Correct Formula:

If ( DataCardValue58.Text = Dropdown2.SelectedText.Value, SubmitForm(EditForm4) & Navigate(SuccessScreen), Notify("The total value is not equal to total float, Please enter correct values"));

View solution in original post

2 REPLIES 2
eka24
Super User III
Super User III

If ( DataCardValue58.Text = Dropdown2.SelectedText.Value, SubmitForm(EditForm4), Notify("YourErrorMessage53"); Navigate(SuccessScreen);
Tapesh
Responsive Resident
Responsive Resident

Thanks, Sir, THis helped me a lot, there was a slight change in your answer which i just noticed, 

 

That navigation of the screen was done after the if statement is executed, which I corrected by your guidance. Thanks 

 

Correct Formula:

If ( DataCardValue58.Text = Dropdown2.SelectedText.Value, SubmitForm(EditForm4) & Navigate(SuccessScreen), Notify("The total value is not equal to total float, Please enter correct values"));

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Top Solution Authors
Top Kudoed Authors
Users online (70,150)