web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Multiple Field Validat...
Power Apps
Unanswered

Multiple Field Validation to Show Save Edit Button

(0) ShareShare
ReportReport
Posted on by

Multi Condition Validation.
Hello,
I posted about this but wasnt able to get a resolution.
Solved: Re: Validation Before Submission - Power Platform Community (microsoft.com)

I have a person group field and other required fields that need to be populated with a value.
Here is a form that is challenging. Below is the form before a Yes/No toggle is set to Yes. 
There is one required field called cboFundingTeamColleague when the toggle is set to "No".

ChrisL58_1-1716318788819.png

If the Yes/No toggle is set to "Yes" the form has more required fields that must be set to yes before the "Save Edit" button is enabled.

ChrisL58_4-1716319584591.png

Notice that one of the controls is set to "No" but yet the Save Edit button is still enabled.

If(DataCardValue36.Value=true && IsBlank(cboFundingTeamColleague.Selected.DisplayName),DisplayMode.Edit,DisplayMode.Disabled || If(DataCardValue36.Value=true && !(Len(RichTextEditor1.HtmlText) = 0),DisplayMode.Edit,DisplayMode.Disabled || If(DataCardValue25.Selected.Value = "Yes" && DataCardValue28.Selected.Value = "Yes" && DataCardValue23.Selected.Value = "Yes" && DataCardValue24.Selected.Value = "Yes",DisplayMode.Edit, DisplayMode.Disabled)))

Can anyone help me determine what I am missing?
Thank you
Categories:
I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    on at

    Hi @ChrisL58 ,

     

    Where is the toggle control, is it DataCardValue36? Which control is it within the two screenshots?

     

    I try to understand the logic and sort the formula based on my understanding:

    If(
     !DataCardValue36.Value,
     DisplayMode.Disabled,
     If(
     IsBlank(cboFundingTeamColleague.Selected.DisplayName) || Len(RichTextEditor1.HtmlText) = 0,
     DisplayMode.Disabled,
     If(
     DataCardValue25.Selected.Value = "Yes" && DataCardValue28.Selected.Value = "Yes" && DataCardValue23.Selected.Value = "Yes" && DataCardValue24.Selected.Value = "Yes",
     DisplayMode.Edit, 
     DisplayMode.Disabled
     )
     )
    )

     

    Best regards,

  • ChrisL58 Profile Picture
    on at

    Hi Jeff, 
    Thanks for responding

    Yes, datacardvalue36 is the toggle.
    I will try what you suggested.

    Thanks.

  • ChrisL58 Profile Picture
    on at

    Hi Jeff,

    If(
        !DataCardValue36.Value && IsBlank(cboFundingTeamColleague.Selected.DisplayName) || IsBlank(RichTextEditor1.HtmlText) = true,
        DisplayMode.Disabled,
            If(
                DataCardValue25.Selected.Value = "Yes" && DataCardValue28.Selected.Value = "Yes" && DataCardValue23.Selected.Value = "Yes" && DataCardValue24.Selected.Value = "Yes",
                DisplayMode.Edit,
                DisplayMode.Disabled
            )
        )
  • ChrisL58 Profile Picture
    on at

    Well, I thought it was working.
    I found out where the formula is failing but the editor for the control doesn't complain.
    The Save Edit button should be disabled but it persists.

    If(!Len(RichTextEditor1.HtmlText) = 0,DisplayMode.Disabled)
    However, if I use 
    If(IsBlank(RichTextEditor1.HtmlText) = true,DisplayMode.Disabled) the button is disabled.

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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard