cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mr-dang
Level 10

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
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Kudoed Authors (Last 30 Days)
Users online (3,659)