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 / How to Enable/Disable ...
Power Apps
Answered

How to Enable/Disable on Submit

(0) ShareShare
ReportReport
Posted on by 901

Hope i explained it clearly 🙂 Here i go

 

I have 2 Combo Box

If the user selected Yes Combo Box 1 and Yes on Combo Box 2 they could submit.

If the user selected Yes Combo Box 1 and No on Combox Box 2 The submit button is disable into they read the Policy

 

Is it possible to have the Submit button enable with they select  Yes for Question1 and Yes for Question2

And have it disable when Question1 is Yes and Question2 is No into they select Yes for the Acknowledge

Flu.PNG

 

Let me know if you need more information 🙂

 

Thank you in advance

 

Categories:
  • mdevaney Profile Picture
    29,993 Moderator on at

    @oappdev 

    The following code will disable the button until both ComboBoxes should the value "Yes".  Put the code in the DisplayMode property of your Button.  (This assumes Yes is text data type).

     

    If(
     And(ComboBox1.Selected.Value="Yes",ComboBox2.Selected.Value="Yes",
     Edit,
     Disabled
    )

     

    If for some reason your ComboBox is using boolean values this code will work instead.

     

    If(
     And(ComboBox1.Selected.Value=True,ComboBox2.Selected.Value=True,
     Edit,
     Disabled
    )

     

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @oappdev ,

    Based on the needs that you mentioned, I think the If function could achieve your needs. I have made a test on my side, please consider take a try with the following workaround:

    Set the DisplayMode property of the "Submit" button to following:

    If(
     ComboBox1.Selected.Value = "Yes" && ComboBox2.Selected.Value = "Yes",
     DisplayMode.Edit,
     ComboBox1.Selected.Value = "Yes" && ComboBox2.Selected.Value = "No",
     DisplayMode.Disabled
    )

    Set the Visible property of the PDF Viewer control (Policy) to following:

    If(
     ComboBox1.Selected.Value = "Yes" && ComboBox2.Selected.Value = "No",
     true,
     false
    )

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard