cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Community Champion
Community Champion

Re: Submit and patch tables

@mr-dang wrote:

 

For more reading on dialogs, please see these resources:

 

@sanrajbhar,

 

You can use the links above for instructions on how to make a pop-up dialog message.

 

The easier way to solve your problem would be to disable the submit button.

  1. Every control has a DisplayMode property.
  2. DisplayMode has 3 different modes: Edit, View, Disabled
  3. You can use a condition to change the mode. In your case, you want the button to be disabled when either of the comboboxes are empty.

    Button.DisplayMode:

    If(IsEmpty(ComboBox1.SelectedItems) || IsEmpty(ComboBox2.SelectedItems), DisplayMode.Disabled, DisplayMode.Edit )
    This means, "If ComboBox1 or ComboBox2 is empty, then disable the button, otherwise, allow the user to click the button."

  4. To show your user why they can't click the button, you can change the button's tooltip.
    Button.Tooltip:
    
    If(Button.DisplayMode=DisplayMode.Disabled, 
        "Please select a choice from each ComboBox.",
        "Submit this form"
    )

I attached a zip containing the app file that has this behavior.

Microsoft Employee
@8bitclassroom

View solution in original post

Helpful resources

Announcements
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,024)