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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Button to increment (m...
Power Apps
Unanswered

Button to increment (missing inital value)

(0) ShareShare
ReportReport
Posted on by 4

Just learning PowerApps so forgive me, really basic question.

 

I have an app that is connected to an excel file and works fine.

I have a field (OrderedValue) with a numeric value and want to increment that value with a button on the Edit Form. I added the button and set the button like this: UpdateContext({varOrdered: OrderedValue.Text + 1}) and set the Default on OrderedValue to varOrdered.  This works fine once I press the button and updates the correct cell in the excel file.

 

The problem is when the form loads the OrderedValue field is blank and I need it populated with the current value of the excel form to start off with. I know exactly why this is not working (because I set the Default to a blank var) but not sure of the correct way to do this 🙂

 

Thanks, Scott

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    152,867 Most Valuable Professional on at

    Hi @swindmiller ,

    Set the Default to

    If(
     !IsBlank(varOrdered),
     varOrdered,
     Parent.Default
    )

     

    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.

     

  • swindmiller Profile Picture
    4 on at
    Told you it was an easy question 🙂 Thanks! Scott
  • WarrenBelz Profile Picture
    152,867 Most Valuable Professional on at

    Thanks @swindmiller ,

    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. 

  • swindmiller Profile Picture
    4 on at

    I tried doing that but keep getting this message:

    swindmiller_0-1599582611269.png

     

  • WarrenBelz Profile Picture
    152,867 Most Valuable Professional on at

    @swindmiller ,

    That is nothing to do with the script. I found this article

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard