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

Community site session details

Session Id : sGDQGRlUzHtCCcxrzJndzj
Power Apps - Building Power Apps
Answered

Possible to force currency entered in increments?

Like (0) ShareShare
ReportReport
Posted on 4 Jun 2021 05:22:04 by 39

Hi all! I have a form that serves as a cash order. I have text boxes that update the SharePoint list with the amount of denominations they need. The denominations need to be in certain increments, however.

 

For instance,

Ones - increments of $1,000

Twos - increments of $2,000

Fives - increments of $5,000

Tens - increments of $10,000

Twenties - increments of $20,000.

 

I know you can test for a value in-between numbers, but I'm not sure how to enforce that when the number can be so many different options. I have an error box that I'm trying to implement this idea into the visible function. Anyone do something like this?

I have the same question (0)
  • asmith2 Profile Picture
    39 on 04 Jun 2021 at 13:16:19
    Re: Possible to force currency entered in increments?

    Perfect, thank you!

  • v-qiaqi@microsoft.com Profile Picture
    on 04 Jun 2021 at 08:19:20
    Re: Possible to force currency entered in increments?

    Hi @asmith2,

    Do you means that you want to each Text input add increments based on the specific number?

    Could you please share a bit more about the scenario?

    I think the Mod() could achieve your needs.

    I think you could set the OnChange property of each TextInput control as below:

    If(
     Mod(
     Value(TextInput4.Text),
     1000
     ) <> 0,
     Notify(
     "Please incremented by the specific amounts!",
     NotificationType.Error
     )
    )

    Note that you could replace the 1000 within the Mod() function with another specific number as you expect.

    Check if this could help you.

    Regards,

    Qi

  • Verified answer
    zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on 04 Jun 2021 at 08:12:32
    Re: Possible to force currency entered in increments?

    a.jpg

    Mod will give you remainder. If remainder is 0 that mean is divisible by 100 and not error. If it is not zero then error.

    You can customize this logic anyway you want

  • asmith2 Profile Picture
    39 on 04 Jun 2021 at 05:38:49
    Re: Possible to force currency entered in increments?

    PXL_20210604_053249714.jpg

    So the value entered needs to be incremented by the specific amounts under it. So the value in Ones must be in increments of $1,000. If a user entered $1,200 they'd get an error because that's not a $1,000 increment. It would only accept $1,000 , $2,000 , etc.

  • Bilakanti Profile Picture
    1,226 on 04 Jun 2021 at 05:30:21
    Re: Possible to force currency entered in increments?

    @asmith2  Can you send me the screenshot of what you are trying to achieve.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading started
Loading complete