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 / Submit Form: Update pr...
Power Apps
Answered

Submit Form: Update property issue

(0) ShareShare
ReportReport
Posted on by 58

[Update property of the datacards]

I have a form with several datacards containing Date + Hours fields.

The update property of each datacard contains the following condition:

 

If(fieldNameChange = false, "",DateValue82.SelectedDate + Time(Value(HourValue82.Selected.Value),Value(MinuteValue82.Selected.Value),0))

 

where the "fieldNameChange" is a variable that is set to true when the user inputs data in the datacard.

 

[Issue]

The system works perfectly when I am testing it in PowerApps studio: if the user didn't input data in the datacard, the field is empty in the database.

 

However, when I do the same thing on my iPhone, the field is not empty in the database and it is filled with default values (current date and 00:00 for the time). I have an iPhone 8 with the latest version of PowerApps

 

Why is everything working correctly in PowerApps studio but not on my phone?

Categories:
  • Verified answer
    WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @alexlrca ,

    I have a number of apps using iPhones and iPads with dates and times, but have not had conditional updates.

    I am suspecting the "" is causing the issue - the following might be worth a try

     

    If(
     fieldNameChange,
     DateValue82.SelectedDate + 
     Time(
     Value(
     HourValue82.Selected.Value
     ),
     Value(
     MinuteValue82.Selected.Value
     ),
     0
     )
    )

     

    simply, if the value is not true, do not write anything.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • alexlrca Profile Picture
    58 on at

    Hi @WarrenBelz ,

     

    I've just tried what you suggested, but the problem is still there..

     

    Seems very strange that everything works fine on my laptop with PowerApps studio, but not on my iPhone. 

    It is as if the condition is satisfied in PowerApps Studio, but not on mobile. In addition, I tried to open the app in web browser, and the problem also appears.

     

    I've written some debugging text in each datacard to check if the condition was met.. and it actually is. I really don't understand what is going wrong 

  • Verified answer
    WarrenBelz Profile Picture
    156,940 Most Valuable Professional on at

    Hi @alexlrca ,

    Very strange indeed.

    Just for interest (this does not solve your problem), try removing the update properties entirely and see if you get anything written back on the iPhone.

    The other thing you might try is Patching it back with the same logic. This may give a more robust control over the process.

    Happy to assist your efforts further if required.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard