web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / In PowerApps, the func...
Power Apps
Unanswered

In PowerApps, the function to check if every required field is filled in isn't working as expected

(0) ShareShare
ReportReport
Posted on by

Hi all,

 

Currently I'm developing an PowerApp. The Powerapp has two screens, the start screen and a request screen.

 

In the start screen you can choose what you would like to request with a dropdown menu.

 

In the request screen you have to fill in information that is required or nice to have for the request.

 

 

 

Sort(Table(
{Value: "", Id: ""},
{Value: "Teams", Id: "teams"},
{Value: "Sharepoint", Id: "sharepoint"},
{Value: "Shared mailbox", Id: "sharedmailbox"},
{Value: "Room mailbox", Id: "meetingroom"},
{Value: "Distribution group", Id: "distributiongroup"}
),Value)

 

 

 

 

But when I for example choose the "Room mailbox" with Id "meetingroom" and instantly click on the submit button I get a popscreen that I need to fill in the data fields for the Sharepoint request.

 

 

 

 

Switch(
 varTypeSelected.Id,
 "meetingroom",
 ClearCollect(
 WarningItemsCollection,
 Table(
 {
 Text: "Name Meetingroom",
 Visible: IsBlank(txtMeetingRoomName)
 },
 {
 Text: "Capacity",
 Visible: IsBlank(txtMeetingRoomCapacity)
 },
 {
 Text: "Location",
 Visible: IsBlank(txtMeetingRoomLocation)
 },
 {
 Text: "Floor",
 Visible: IsBlank(txtMeetingRoomFloor)
 },
 {
 Text: "Room type",
 Visible: IsBlank(rdoMeetingRoomRoomType.Selected.Value)
 },
 {
 Text: "Fill in other",
 Visible: IsBlank(txtRoomTypeRemarksMeetingroom) And rdoMeetingRoomRoomType.Selected.Value = "Other"
 }
 )
 );
 With(
 {
 hasWarnings: CountRows(
 Filter(
 WarningItemsCollection,
 Visible = true
 )
 ) <> 0
 },
 // Show popup with warnings or send the data to powerautomate (flow)
 If(
 hasWarnings,
 UpdateContext({conPopUpWarning: true}),
 Patch(
 'ICT Collaboration form Test',
 Defaults('ICT Collaboration form Test'),
 {
 'Environment Type': EnvironmentType.Selected.Value,
 RoomMailboxRoomNumber: txtMeetingRoomName.Text,
 RoomMailboxCapacity: txtMeetingRoomCapacity.Text,
 RoomMailboxLocation: txtMeetingRoomLocation.Text,
 RoomMailboxFloor: txtMeetingRoomFloor.Text,
 RoomMailboxPhoneNumber: txtMeetingRoomPhone.Text,
 RoomMailboxRoomType: rdoMeetingRoomRoomType.Selected.Value,
 RoomMailboxRemarks: txtMeetingRoomRemarks.Text
 }
 )
 )
 );
 "sharepoint",
 ClearCollect(
 WarningItemsCollection,
 Table(
 {
 Text: "Sharepoint page name",
 Visible: IsBlank(txtNameSharepoint)
 },
 {
 Text: "Region",
 Visible: IsBlank(cbxRegionSharepoint) Or CountRows(cbxRegionSharepoint.SelectedItems) = 0
 },
 {
 Text: "Department",
 Visible: IsBlank(cbxDepartmentSharepoint) Or CountRows(cbxDepartmentSharepoint.SelectedItems) = 0
 },
 {
 Text: "Owner",
 Visible: IsBlank(cbxSharePointOwners) Or CountRows(cbxSharePointOwners.SelectedItems) = 0
 },
 {
 Text: "Member",
 Visible: IsBlank(cbxSharePointMembers) Or CountRows(cbxSharePointMembers.SelectedItems) = 0
 },
 {
 Text: "Fill in type of critical data",
 Visible: IsBlank(txtSharePointCriticalDataType) And TglSharePointCriticalData.Value = true
 }
 )
 );
 With(
 {
 hasWarnings: CountRows(
 Filter(
 WarningItemsCollection,
 Visible = true
 )
 ) <> 0
 },
 // Show popup with warnings or send the data to powerautomate (flow)
 If(
 hasWarnings,
 UpdateContext({conPopUpWarning: true}),
 Patch(
 'ICT Collaboration form Test',
 Defaults('ICT Collaboration form Test'),
 {
 'Environment Type': EnvironmentType.Selected.Value,
 SharepointPageName: txtNameSharepoint.Text,
 SharepointRegion: cbxRegionSharepoint.Selected.Value,
 SharepointDepartment: cbxDepartmentSharepoint.Selected.Title,
 SharepointCriticalData: TglSharePointCriticalData.Value,
 SharepointOwner: cbxSharePointOwners.Selected.DisplayName,
 SharepointMembers: cbxSharePointMembers.Selected.DisplayName,
 SharepointGuestUsers: txtSharepointGuestUser.Text
 }
 )
 )
 );
)

 

 

 

 

Can you help me with this? To me it feels like a bug, but I am not sure

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 545 Most Valuable Professional

#2
Haque Profile Picture

Haque 314

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard