
Announcements
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.