@v-xida-msft i am getting an error in your code. i am trying to disable and enable my save icon rather than allowing user to save the data and then show the error.
Please find the code below;
If(
Sum(
If(
(Value(TextInput2.Text)>=0 && Value(TextInput2.Text)<=1) || TextInput2.Text = "MAT" || TextInput2.Text = "PAT"|| TextInput2.Text = "mat" || TextInput2.Text = "pat"),
0,
1
),
If(
(Value(TextInput4.Text)>=0 && Value(TextInput4.Text)<=1) || TextInput4.Text = "MAT" || TextInput4.Text = "PAT"|| TextInput4.Text = "mat" || TextInput4.Text = "pat"),
0,
1
),
If(
(Value(TextInput5.Text)>=0 && Value(TextInput5.Text)<=1) || TextInput5.Text = "MAT" || TextInput5.Text = "PAT"|| TextInput5.Text = "mat" || TextInput5.Text = "pat"),
0,
1
),
If(
(Value(TextInput6.Text)>=0 && Value(TextInput6.Text)<=1) || TextInput6.Text = "MAT" || TextInput6.Text = "PAT"|| TextInput6.Text = "mat" || TextInput6.Text = "pat"),
0,
1
),
If(
(Value(TextInput7.Text)>=0 && Value(TextInput7.Text)<=1) || TextInput7.Text = "MAT" || TextInput7.Text = "PAT"|| TextInput7.Text = "mat" || TextInput7.Text = "pat"),
0,
1
),
If(
(Value(TextInput8.Text)>=0 && Value(TextInput8.Text)<=1) || TextInput8.Text = "MAT" || TextInput8.Text = "PAT"|| TextInput8.Text = "mat" || TextInput8.Text = "pat"),
0,
1
),
If(
(Value(TextInput9.Text)>=0 && Value(TextInput9.Text)<=1) || TextInput9.Text = "MAT" || TextInput9.Text = "PAT"|| TextInput9.Text = "mat" || TextInput9.Text = "pat"),
0,
1
),
If(
(Value(TextInput10.Text)>=0 && Value(TextInput10.Text)<=1) || TextInput10.Text = "MAT" || TextInput10.Text = "PAT"|| TextInput10.Text = "mat" || TextInput10.Text = "pat"),
0,
1
),
If(
(Value(TextInput11.Text)>=0 && Value(TextInput11.Text)<=1) || TextInput11.Text = "MAT" || TextInput11.Text = "PAT"|| TextInput11.Text = "mat" || TextInput11.Text = "pat"),
0,
1
),
If(
(Value(TextInput12.Text)>=0 && Value(TextInput12.Text)<=1) || TextInput12.Text = "MAT" || TextInput12.Text = "PAT"|| TextInput12.Text = "mat" || TextInput12.Text = "pat"),
0,
1
),
If(
(Value(TextInput13.Text)>=0 && Value(TextInput13.Text)<=1) || TextInput13.Text = "MAT" || TextInput13.Text = "PAT"|| TextInput13.Text = "mat" || TextInput13.Text = "pat"),
0,
1
),
If(
(Value(TextInput15.Text)>=0 && Value(TextInput15.Text)<=1) || TextInput15.Text = "MAT" || TextInput15.Text = "PAT" || TextInput15.Text = "mat" || TextInput15.Text = "pat") ,
0,
1
)
) > 0,DisplayMode.Edit,DisplayMode.Disabled)