cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Uthhra
Helper III
Helper III

PowerApps radio button validations

Hi all,

I have a SharePoint list, I'm customizing the form. In my form I have dropdown, formula fields and w.r.t the fields RAG is also there. I have a overall RAG which changes based on the below RAG of the respective fields. The overall RAG can also be changed manually by the user from one color to another. For eg. (When the overall RAG is changed from Red to Amber, it must give a notification stating "Below one of the fields must be Amber to change the overall RAG", if it has amber in one of the field below it will give notification or else it will give the notification). To check the below all rag fields I have assigned a variable to do the validations

(Radio28_1.Default = "Amber" || Radio30_1.Default = "Amber" || Radio29_1.Default = "Amber" || Radio31_1.Default = "Amber" || Radio32_1.Default = "Amber" || Radio33_1.RadioSelectionFill = Orange || Radio34_4.Default = "Amber" || Radio42_3.Default = "Amber" || Radio43_1.Default = "Amber" || Radio45_1.RadioSelectionFill = Orange || Radio83.RadioSelectionFill = Orange || Radio84.RadioSelectionFill = Orange || Radio70.Default = "Amber"),
Update Context({varnewamber1: true}),

I have written this on visible of the page, On change/On select of the dropdowns to validate the fields.

On submit I have written this to validate the condition:

If(
Radio24_2.Default = "Red" && Radio24_2.Selected.Value = "Amber" && varnewamber1 <> true,
Notify(
"Below one of the fields must be changed to Amber",
NotificationType.Warning,
1000
))

But the variable varnewamber1 is not working even the condition is correct.

Any help would be greatly appreciated.

 

0 REPLIES 0

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (4,812)