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 / Generating dynamic for...
Power Apps
Answered

Generating dynamic forms and dynamic controls

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

Our requirement is automating the forms by generating dynamic form and dynamic controls on button click?

Can anyone help on this?

 

Thanks,

Prathibha

Categories:
  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @prathig14 ,

    Could you please share a bit more about your scenario?

    Do you want to generate a dynamic form and dynamic controls via pressing a button?

     

    If you want to generate a dynamic form and dynamic controls via pressing a button, I afraid that there is no way to achieve your needs in PowerApps currently.

    If you would like this feature to be added in PowerApps, please consider submit an idea to PowerApps Ideas Forum:

    https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

     

    Currently, within PowerApps, the form and controls within this form are based on the data source the form connects to. There is no way to generate a dynamic form and dynamic controls within it.

     

    As an alternative solution, you could consider display/hide the specific form based on specific condition (Conditional Visibility), you could also display/hide specific controls within a form based on a specific condition.

    On your side, you could add multiple Edit forms (or Display forms) within your app screen. Then set the Visible property of the Edit form to following:

     

    If( /* for Edit form1 */
     "Condition1",
     true,
     false
    )

     

    If( /* for Edit form2 */
     "Condition2",
     true,
     false
    )

     

    If( /* for Edit form3 */
     "Condition3",
     true,
     false
    )

    ...

     

     

    In addition, within your Edit form (or Display form), you could also display/hide controls based on specific condition. E.G. Within the Edit form1, set the Visible property of the DataCard1 to following:

     

    If(
     "SpecCondition1",
     true,
     false
    )

    set the Visible property of the DataCard2 to following:

     

     

    If(
     "SpecCondition2",
     true,
     false
    )

    ...

     

     

    On your side, you could change the above condition status via pressing the "Button" controls in your app (e.g. add formula within the OnSelect proeprty of the button to change the condition variable), then corresponding forms or controls would be displayed

    Please check and see if the following videos would help in your scenario:

    https://www.youtube.com/watch?v=yCXT3PyOp4A

    https://www.youtube.com/watch?v=IvapIsBbM-U

     

    Best regards,

     

     

  • MaheshK Profile Picture
    2 on at
    Hi Team,

    I am also looking for the same functionality, is this available in recent releases?

    Regards,
    Mahesh
  • shubham4052 Profile Picture
    4 on at

    I have created a basic example for creating dynamic form, might be you will get some information on that or you will get some solution. Have a look here

    https://youtu.be/-sem5yxaUNM

  • Matthew Snead Profile Picture
    2 on at

    Due to the length of time, it takes for our implementations, we have determined that a way to cut the time down would be to dynamically create forms for our customers.

    Is it possible to utilize some configuration and have a PowerApp form be created on the fly (preferably once during implementation)?

    My thought on this would be that a customer would choose the fields they want, set the order, and display names. Then we would have some application ‘pump’ this information into PowerApps to create a form during implementation.


    This would alleviate the need for too much customization as everyone would be able to leverage the same fields, but utilize them in different ways.


    Please let us know if this is possible and if not is there another way we can accomplish this?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard