web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Apps
Unanswered

Condition with if

(0) ShareShare
ReportReport
Posted on by 140

Hello. I need help with this, I feel that my logic is correct but it is not working. I have this screen:

JamtMaster_0-1682645143073.png

If(
 Len(dtcCodigoRec.Text) < 1 || Len(dtcCodigoOtorgante.Text) < 1,
 Notify(
 "Faltan datos obligatorios",
 NotificationType.Error,
 2000
 ),
 SubmitForm(FCertificados);
 
If( checkMultC.Value = false && Value(DataCardValue73.Text) * 1 > 1, 
"",
If( checkMultC.Value = false && DataCardValue31.Text = "Completada", Navigate(PCertificado, ScreenTransition.Cover),
If( checkMultC.Value = false && Value(DataCardValue73.Text) * 1 < 1, Navigate(PCertificado, ScreenTransition.Cover) )));

);

What I need is that if the field located in the DataCardValue73 is greater than 1 and the checkbox is not active, do nothing more than SubmitForm(FCertificados), and only navigate to the PCertificado screen if any of the other conditions are met.

JamtMaster_1-1682645217139.png

In this photo you can see how I put the condition that should be enough so that it does not navigate and it is verified that = true and even so, when clicking the button, it navigates to the PCertificado screen.

 

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @JamtMaster 

    NEVER chain commands after SubmitForm().  They are not always executed sequentially and should never be executed at all if the submission fails.  Instead put them in the OnSuccess property of the form.

  • JamtMaster Profile Picture
    140 on at

    @Drrickryp i put the code in the onsucess property and the same issue.  

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard