Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

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:
  • ChrisL58 Profile Picture
    on at
    Re: Multiple Field Validation to Show Save Edit Button

    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.
  • ChrisL58 Profile Picture
    on at
    Re: Multiple Field Validation to Show Save Edit Button

    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
    Re: Multiple Field Validation to Show Save Edit Button

    Hi Jeff, 
    Thanks for responding

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

    Thanks.

  • Verified answer
    v-jefferni Profile Picture
    on at
    Re: Multiple Field Validation to Show Save Edit Button

    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,

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,026 Most Valuable Professional

Leaderboard