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 Platform Community / Forums / Power Apps / IF statement works in ...
Power Apps
Unanswered

IF statement works in Studio but not in mobile

(0) ShareShare
ReportReport
Posted on by 27

Hello,

 

I have a form which after it is submitted i want to popup a GUI for confirmation.

see the following code in the ON SUCCESS property of the form:

frmLabEntryClosure.OnSuccess:

Set(varLabEntry, frmLabEntryClosure_1.LastSubmit);

Notify("הטופס נשמר בהצלחה", NotificationType.Success);
ViewForm(frmLabEntryClosure_1);

If(
    frmLabEntryClosure_1.LastSubmit.'סטטוס קריאה' = 'סטטוס קריאה (כרטיסי מעבדה)'.'עבודה הסתיימה' && frmLabEntryClosure_1.LastSubmit.'חשבונית הופקה' && frmLabEntryClosure_1.LastSubmit.'פריט נארז כראוי',
    UpdateContext({cxtAccountStatus: "Invoiced", cxtShowAccountingApproval: true}),
   
    (frmLabEntryClosure_1.LastSubmit.'סטטוס קריאה' = 'סטטוס קריאה (כרטיסי מעבדה)'.'הצעה נשלחה' || frmLabEntryClosure_1.LastSubmit.'סטטוס קריאה' = 'סטטוס קריאה (כרטיסי מעבדה)'.'הזמנה התקבלה - חלקים בהזמנה') &&
    frmLabEntryClosure_1.LastSubmit.'התקבלה הזמנה' && frmLabEntryClosure_1.LastSubmit.'פריטים במלאי',
    UpdateContext({cxtAccountStatus: "Ordered in Stock", cxtShowAccountingApproval: true}),

    frmLabEntryClosure_1.LastSubmit.'סטטוס קריאה' = 'סטטוס קריאה (כרטיסי מעבדה)'.'הצעה נשלחה' && frmLabEntryClosure_1.LastSubmit.'התקבלה הזמנה' && !frmLabEntryClosure_1.LastSubmit.'פריטים במלאי',
    UpdateContext({cxtAccountStatus: "Ordered Not in Stock", cxtShowAccountingApproval: true}),

     frmLabEntryClosure_1.LastSubmit.'סטטוס קריאה' = 'סטטוס קריאה (כרטיסי מעבדה)'.'ממתין להצעה' && frmLabEntryClosure_1.LastSubmit.'הצעה נשלחה',
     UpdateContext({cxtAccountStatus: "Quoted", cxtShowAccountingApproval: true})
);

some of the word are in hebrew but generally the IF statement should popup a GUI via "cxtShowAccountingApproval"
This workd when i simulate (F5) on the studio but not on the mobile app.
 
Thanks
Set(varSpinner, false)
Categories:
I have the same question (0)
  • kelseytran Profile Picture
    292 on at

    Hi @YoavOrion ,

     

    Did you publish the new updates? It may be working in Power Apps Studio but not on mobile because the changes haven't been published yet.

  • YoavOrion Profile Picture
    27 on at

    Hi @kelseytran 

    yes the app is published and updated. 
    can the issue be the power apps App in apple?

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard