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 / Limit range typed into...
Power Apps
Unanswered

Limit range typed into number field

(0) ShareShare
ReportReport
Posted on by 152

Beginner question...   A SharePoint list form has a 'number' input field, i need to limit the range that can be input into this field 0 - 100.  Think that I need to add a function to the 'OnChange' action for the datacardvaluexx field???  ... but not sure of the context. I am sure it is a simple statement, but it eludes me.  Is there any help for me out there?

Categories:
I have the same question (0)
  • LaurensM Profile Picture
    12,516 Moderator on at

    @ghutchinsMicron You can do this in SharePoint itself.
    Edit the number field in the SharePoint list, go to more options and set a max value.

     

    I hope this helps!

  • ghutchinsMicron Profile Picture
    152 on at

    @LaurensM I am aware that this can be done in SharePoint.  Want to do it in the app so that the error pops up right then and there if the user inputs 101.  Dont want to wait until the form is saved to find out the number input was not correct.

  • Verified answer
    LaurensM Profile Picture
    12,516 Moderator on at

    @ghutchinsMicron with a form the error would show up when they try to submit.

    If you want to show it directly after filling in a number, please try this code on the OnChange of the field:

     

     

    If(
     Value(Self.Text) > 100,
     Notify(
     "Value cannot be more than 100",
     NotificationType.Error
     );
     Reset(Self)
    )

     

     

    I hope this helps!

  • ghutchinsMicron Profile Picture
    152 on at

    Yes...  that is what I was requesting.  Thanks

  • rajeevkumar0 Profile Picture
    10 on at

    Hello Lauren, I am stuck in one condition. i have 02 forms one is for users who enter the required quantity and 2nd is the view form that I want to apply the condition that users can not increase the quantity based on the required quantity however they can issue less quantity.

     

    Required Quantity-DataCardValue32

    Issued Quantity- DataCardValue58

     

    Please help me 

  • rajeevkumar0 Profile Picture
    10 on at

    Please help

     

  • rajeevkumar0 Profile Picture
    10 on at

    It has been resolved by applying the below formula on data card value on change properties.

     

    If(
        Value(DataCardValue32.Text) <= Value(DataCardValue58.Text),
        Notify(
            "Value cannot be more than user requested QTY ",
            NotificationType.Error
        );
        Reset(Self)
    )

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard