Hi
I have a drop down field with two options: Red and Blue. The default option is Blue - this is because the users should only choose red once. However, they can change which row of data has red but red can only be chosen once whereas blue can be chosen hundreds of times. How can this be achieved in PowerApps. If the error message only appears with the on 'Submit' button that's OK
Solved! Go to Solution.
Hello
thank you for your reply. Unfortunately, I'm quite new to powerapps and what you describe is a little above my knowledge for now. What I've decided to do - as this field will not change very often - is make the first entry the default and the field a read only so that if this needs to be altered, changes will come through me.
thank you
Is it in model driven app or canvas app?
If any of the app in both the case on on-change event just disable the field or make as read-only.
Depends on the app I will give you some pointers to achieve the functionality.
If it answers your question, kindly give kudo and accept it as solution.
Regards,
Prakash
Hello @Lilywhite63
You need to write JavaScript or plugin to Achieve the same.
Steps to Follow For js
1. OnLoad of Page get the Value from the Field and Store it Globally
2. On Save Compare the Value with Updated Value in the Field
and throw the error.
Steps to Follow : Plugins
1. Use Pre Image to get the Value
2. Compare with New Value and Throw the error.
Let me know if you need more clarity.
Please mark as Answer if it is helpful and provide Kudos
Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
Blog : https://microsoftcrmtechie.blogspot.com
Hello
thank you for your reply. Unfortunately, I'm quite new to powerapps and what you describe is a little above my knowledge for now. What I've decided to do - as this field will not change very often - is make the first entry the default and the field a read only so that if this needs to be altered, changes will come through me.
thank you
User | Count |
---|---|
20 | |
10 | |
9 | |
5 | |
5 |
User | Count |
---|---|
34 | |
32 | |
19 | |
18 | |
7 |