cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

how to check all required fields are filled out with different screens of different sharepoint lists

I have multiple different screens that I'd like to check that all of the forms from the different screens are filled out with the required fields before I submit them.

 

The columns are set as required within each SharePoint list.

1 ACCEPTED SOLUTION

Accepted Solutions

@Anonymous 

Understood 🙂

 

Put this code in the DisplayMode property of your submit button.  Replace the DataCardValue_Field references with your own names.  Add as many fields as you like

If(
    !IsBlank(DataCardValue_Field1.Text)
    And !IsBlank(DataCardValue_Field2.Text)
    And !IsBlank(DataCardValue_Field3.Text),
    DisplayMode.Edit,
    DisplayMode.View
)

 

 

---
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

6 REPLIES 6
eka24
Super User
Super User

Select each datacard (not datacardvalue) and set its Required Property to true

mdevaney
Super User
Super User

@Anonymous 

For any field that must be filled out before the form is submitted go to the Card holding it and change the Required property to this code

true

 

When you use the SubmitForm function to submit the form it won't go-ahead unless all fields with Required=true are completed.

 

---
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."

Anonymous
Not applicable

Yes I understand this part. The issue I'm having is I want to check all of the forms before submitting because they depend on each other and should all only submit if they are all correct. So, I need an alternative way in case one isn't finished so the rest don't submit.

@mdevaney 

@Anonymous 

Understood 🙂

 

Put this code in the DisplayMode property of your submit button.  Replace the DataCardValue_Field references with your own names.  Add as many fields as you like

If(
    !IsBlank(DataCardValue_Field1.Text)
    And !IsBlank(DataCardValue_Field2.Text)
    And !IsBlank(DataCardValue_Field3.Text),
    DisplayMode.Edit,
    DisplayMode.View
)

 

 

---
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."

Anonymous
Not applicable

Yup, that's What I feared I'd have to do haha. thanks for at least confirming my sadness with doing this with dozens of controls.

@mdevaney 

MichelH
Advocate V
Advocate V

It is indeed quite sad you have to go through all the datacards to find out which are required.

Mine even have formulas I need to evaluate, to see if they are mandatory at the right time.

And of course the submits knows what datacard caused the error.

Why won't it tell.

 

MS, please bin the "something went wrong" type of errors and give something solid.

Helpful resources

Announcements
Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

Top Kudoed Authors
Users online (3,507)