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 / Disable the submit but...
Power Apps
Unanswered

Disable the submit button using multiple toggles and images

(0) ShareShare
ReportReport
Posted on by 9

I need to disable the submit button based on the toggle selection and whether an image is present or not. 

i.e., In the example below, if the toggle goes to yes, currently set to no, and the image is blank, disable the submit button. I have three such "switches and images" that need consideration before the submit button is enabled.

sanderson1_0-1695761898937.png

 

Categories:
I have the same question (0)
  • SpongYe Profile Picture
    5,603 Super User 2025 Season 2 on at

    Hi @sanderson1 

     

    Please try on button.DisplayMode:

     

    If(
     (Toggle1 && IsBlank(Image1.Image))
     && 
     (Toggle1_1 && IsBlank(Image2.Image))
     &&
     (Toggle1_2 && IsBlank(Image3.Image)),
     DisplayMode.Edit,
     DisplayMode.Disabled
    )

     

     

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

     

  • Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @sanderson1 try:

     

    If(
     IsBlank(Image1.Image) && Toggle1.Value && IsBlank(Image2.Image) && Toggle2.Value && IsBlank(Image3.Image) && Toggle3.Value,
     DisplayMode.Disabled,
     DisplayMode.Edit
    )

     

  • sanderson1 Profile Picture
    9 on at

    Hello,

     

    Thank you for the prompt reply. I tried the formula, and it worked for the first two toggles and images but not for the third. The submit button is not disabled, and I can continue to submit as long as the first two conditions are met.  Thanks!

  • Verified answer
    Ami K Profile Picture
    15,679 Super User 2024 Season 1 on at

    @sanderson1 - the formula above is based on my understanding that if ALL toggles are checked but ALL images are blank, then disable the button.

     

    I think what you're asking for is an OR condition. In other words, if any toggle is checked but if any image is blank, disable the button:

     

    If(
     IsBlank(Image1.Image) && Toggle1.Value || IsBlank(Image2.Image) && Toggle2.Value || IsBlank(Image3.Image) && Toggle3.Value,
     DisplayMode.Disabled,
     DisplayMode.Edit
    )

     

  • sanderson1 Profile Picture
    9 on at

    Thank you!

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