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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Rule will be activated...
Power Apps
Answered

Rule will be activated if a field meets the requirement

(0) ShareShare
ReportReport
Posted on by 44

Hi guys,

 

I have another question today regarding my current app.

 

Let's say I had a SharePoint List with A,B,C,D column. 'C column' is a multiple choices with c1, c2, c3, c4 options to choose from.

 

I created an EditForm in PowerApp which connect to the Data Source above. It means I will have A, B, C, D field in my form.

 

The question is: because I want when End User choose option c3 || option c4, D field will become required and End User must fill in D Field if they want to submit the form. How can I do that? I cannot use IF function because the PowerApp said 'Incompatibe type for comparision'.

 

Thank you for your help guys

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    @Bosch_DaDT216 ,

     

    There is no reason why you can't use the If statement. Are you able to post a screenshot?

    You should be able to add condition logic in the Required property of your control.

     

  • Bosch_DaDT216 Profile Picture
    44 on at

    Sure, please refer to my picture below:

     

    Bosch_DaDT216_0-1680577467184.png

     

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    If DatacardValue9 is a dropdown, then try DataCardValue9.Value = "Something"

     

  • Bosch_DaDT216 Profile Picture
    44 on at

    Sadly, the DatacardValue9 is a combo box. I did try what your recommend but no luck.

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    DatacardValue9 .Selected.XXX ?

  • Bosch_DaDT216 Profile Picture
    44 on at

    What is your recommend for 'XXX'? I tried 'Value' but the error still there. I tried to change the formula into 'Checkbox1.Text', the formula is fine but the rules I want still not activated.

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Are you doing a Patch or SubmitForm?

    The validation only works for SubmitForm.

    For Patch, you need to add a check on the top

     

  • Bosch_DaDT216 Profile Picture
    44 on at

    I am using Patch. Could you tell me more about the 'You need to add a check on the top'?

  • Verified answer
    Bosch_DaDT216 Profile Picture
    44 on at

    Thank you. I figured out how to do it. Actually, I am mislead by using a not correct IF, I use '='. I changed the formula into If("MyRequirement" in DataCardValue9.SelectedItems.Value, true, false). The formula works perfectly. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard