Notifications
Announcements
It is a shopping cart gallery. I want to check value key in base on min & max MOQ.
Eg. MIN MOQ 12, MAX MOQ 12, quantity has to be 12
MIN MOQ 2, MAX MOQ 12, quantity has to be 2-12
Any idea, to make sure user fill in accordingly.
@NurNida ,
Set the Default property on your TextInput field to a variable varQuantity.Set the OnChange property on your TextInput field to:
If(Value(Self.Text)>ThisItem.MaxQ,UpdateContext({varQuantity: ThisItem.MaxQ}),If(Value(Self.Text)<ThisItem.MinQ,UpdateContext({varQuantity: ThisItem.MinQ})));Reset(TextInput)
_____________________________________________________________________________________Please give a thumbs up if I resolved your issue! Please click Accept as Solution to close the topic!
Hello @NurNida ,
You can also enable modern controls and access the "Number Input" control, which allows you to define the range of the allowed values.
Enable modern controls in "General" in "Parameters", and try it to see if it works well with what you need.
@WiZey ,
Thanks for sharing the knowledge, I didn't know about this new control.
This for sure would be a much better option and easier to control.
Yay!
This is new!
Thanks @WiZey . It works well in gallery!
Max and min was pull from SharePoint. I am using ThisItem.MaxMOQ to set Max value.
Thanks @Gochix , varQuantity giving issues because I am using gallery. It will set all to same varQuantity value. Anyway, it gives me some idea!
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268