cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

How to make user fill out 3 controls before they can hit submit button?

Hello,

 

I have 3 individual controls. One is a combobox, the other is a text input, and the other is an attachment control. I have this formula in place yet as soon as i write something in the Text input the submit button appears and i don't want that. I want the user to fill out all three controls before the submit button shows up. This is the formula that i have so far:  If(IsBlank(DatacardValue2.Attachments) || IsBlank(Combobox4.SelectedItems) || IsBlank(TextInput3.Text), Dsiabled, Edit). Any help will be much appreciated. 

 

FYI for the attachments i am using a form the other two controls are normal. 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: How to make user fill out 3 controls before they can hit submit button?

@patty789 
We must use the ISEMPTY function to evaluate ComboBox.SelectedItems and Attachments.  This is because both of them output a Table data type.  To check if a Table data type has 0 rows we use ISEMPTY instead of ISBLANK. 

 

If(
    !IsEmpty(DatacardValue2.Attachments)
    And !IsEmpty(Combobox4.SelectedItems)
    And !IsBlank(TextInput3.Text),
    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."

View solution in original post

1 REPLY 1
Highlighted
Super User III
Super User III

Re: How to make user fill out 3 controls before they can hit submit button?

@patty789 
We must use the ISEMPTY function to evaluate ComboBox.SelectedItems and Attachments.  This is because both of them output a Table data type.  To check if a Table data type has 0 rows we use ISEMPTY instead of ISBLANK. 

 

If(
    !IsEmpty(DatacardValue2.Attachments)
    And !IsEmpty(Combobox4.SelectedItems)
    And !IsBlank(TextInput3.Text),
    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."

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (6,442)