cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Coopedup
Resolver I
Resolver I

How would you! Identify a field has been changed to a specific value and been saved to source

Hi all,

 

Not sure what my problem is today, possibly over thinking this!

 

I have a combo box field that when Closed is selected and is saved, I want to patch and track that in a comments box (with some specific details).

 

OnChange is fine, but if a user doesn't save it or then goes back to a different status then the update shouldn't happen.  I also thought about OnSucess of form submit to check the status, but I'd need to compare to the original value to know it was changed!

 

What would you recommend?

 

2 REPLIES 2
mahoneypat
Solution Sage
Solution Sage

RandyHayes
Super User III
Super User III

@Coopedup 

Your easiest path would be the OnSuccess.  As you mention, simply compare the original value with the LastSubmit value of the form.  If different, then do what you need.

If what you need to do is to the same datasource, then you can do that within the form itself much easier.  In other word, if the Comments that you want to append to is part of that same record, then just consider the Update property of the Comments datacard in your form to do it.

 

Ex.

Comments Update property:

If(ThisItem.fieldForCombobox <> yourCombobox.Selected.Value,
   ThisItem.Comments & "some new comments",
   ThisItem.Comments
)

 

I hope this is helpful for you. 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

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

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 (46,820)