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

5 REPLIES 5
eka24
Super User III
Super User III

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

mdevaney
Super User III
Super User III

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

View solution in original post

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 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,747)