cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PowerApps11
Helper IV
Helper IV

Update TextInput only edit form and if the amount is greater

Hi 

I have a two value Fields which bassicly one of them is a copy of other and is on Form so what I need is one to stay same value and It does not change on edit form but will only change if the amount is greater than what already in it on edit form only 

can you help me how to do it.

 

Thanks                                                                                                                                               

1 ACCEPTED SOLUTION

Accepted Solutions
StalinPonnusamy
Super User
Super User

Hi @PowerApps11 

 

Coalesce means return first not null value. In this case, if CheckAmount has value then it never takes the other amount. Please try this

If(
        Value(ThisItem.CheckAmount) < Value(txtAmounCheck.Text),
        txtAmountCheck.Text + PaidTextBoxChecks.Text,
ThisItem.CheckAmount
    )

 

In this condition, If the value is less than the Amount Check then stays the same otherwise add the check amount and Paid amount.

 

View solution in original post

3 REPLIES 3
StalinPonnusamy
Super User
Super User

Hi @PowerApps11 

 

In this example, the control value changes only when Qty control value greater than 10.

 

On the screen visible set, the property to

UpdateContext({OriginalValue:BrowseGallery1.Selected.'Issue description'})

 

Set the Default property of Text control to

If(Value(QtyDataCardValue.Text) < 10, OriginalValue, DataCardValue10.Text)

 

Result

StalinPonnusamy_0-1637553094911.png

 

StalinPonnusamy_1-1637553110952.png

 


Thanks,
Stalin - Learn To Illuminate

 

Hi @StalinPonnusamy 

 

This how i modified the formula please check if it is correct as all i need is to a copy of the original value but if changed to reflect the changes 

Coalesce(
    ThisItem.CheckAmount,

    If(
        Value(ThisItem.CheckAmount) < Value(txtAmounCheck.Text),
        txtAmountCheck.Text + PaidTextBoxChecks.Text
    )
)

Thanks 

 

StalinPonnusamy
Super User
Super User

Hi @PowerApps11 

 

Coalesce means return first not null value. In this case, if CheckAmount has value then it never takes the other amount. Please try this

If(
        Value(ThisItem.CheckAmount) < Value(txtAmounCheck.Text),
        txtAmountCheck.Text + PaidTextBoxChecks.Text,
ThisItem.CheckAmount
    )

 

In this condition, If the value is less than the Amount Check then stays the same otherwise add the check amount and Paid amount.

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,843)