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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Canvas app - Get list ...
Power Apps
Suggested Answer

Canvas app - Get list of required fields in form

(2) ShareShare
ReportReport
Posted on by 20
Hi all, 
 
Is there a way or a simple method to get all fields where the property "Required" is set to true ?
 
Before the save of my form, i would like to show the list of required fields that are empty and show it in a pop-up. 
I have around 100 fields in my form.
 
Many thanks
Categories:
I have the same question (0)
  • Suggested answer
    MichaelFP Profile Picture
    1,847 Super User 2025 Season 2 on at
    The easily wait to achieve that, i would recommend to create a Power Automate flow that will retrieve metadata from the table and then get the list of required fields.

    Here is an example: /api/data/v9.2/EntityDefinitions(LogicalName='account')?$select=LogicalName&$expand=Attributes($select=LogicalName,RequiredLevel)

    you will be able to get this information
     
    and return the list of fields that are required to your canvas app
  • Suggested answer
    Nandit Profile Picture
    1,568 Moderator on at
    Hi  jd38,
     
    I have a solution but I am not sure if its the best one given you have 100 fields, which I personally think is a lot for any form. Here's what I have created - 
    OnSelect of Save Button
    Clear(missingfields);
    If(IsBlank(DataCardValue5.Value),Collect(missingfields,title_DataCard1.DisplayName), false );
    If(IsBlank(DataCardValue6.Selected),Collect(missingfields,Person_DataCard1.DisplayName), false );
    If(IsBlank(DataCardValue7.Selected),Collect(missingfields,'card lookup_DataCard1'.DisplayName), false );
    If(IsBlank(DataCardValue8.Selected),Collect(missingfields,Test_DataCard1.DisplayName), false );
    If(IsBlank(DataCardValue18.SelectedDate),Collect(missingfields,DOB_DataCard1.DisplayName), false );
    If(IsBlank(DataCardValue26.Value),Collect(missingfields,Description_DataCard1.DisplayName), false );
    Set(showMissingFields, true )
     
    Visible property of the above elements - 
    ShowMissingFields
    OnSelect of Okay Button
    Set(showMissingFields, false)
     
    Hope this helps. 
     
    Kind regards,
    Nandit
     
    If this answers your query, please mark this response as the answer.
    If its helpful, please leave a like. Thanks!
     
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard