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 Pages / Multiple Forms on One ...
Power Pages
Suggested Answer

Multiple Forms on One Page

(0) ShareShare
ReportReport
Posted on by 20
Hi
 
I have an organisation details page on my power pages website.
 
I have it set up in a tab format where they can enter their details, board member details, staff details etc.
 
I would like to keep it on the one page page if possible but I am now getting error  An entry with the same key already exists. on a few of the forms on the page
 
All of the forms are :
{% entityform name: 'NewBoard' %}
{% entityform name: 'Information' %}
{% entityform name:'NewStaff' %}
 
Is it possible to have multiple creation forms on one page?
 
 
 
Thanks
 
Categories:
I have the same question (0)
  • Suggested answer
    Robert Bailey Upzoids Profile Picture
    4 on at
    Hey, the problem is that you can't have more than one form associated to the submission event.  When you submit a form the whole page submits, if that makes sense.  You need like a custom AJAX submission form instead if you insist on multiple forms present on one page.  I don't recommend that.  YOu could also try something with iFrames.

    I recommend forgetting this approach and use either multi-step Web Forms (https://learn.microsoft.com/en-us/power-pages/configure/multistep-form-properties) or use entity list actions or something if things are relatively simple.

    Given your scenario - my approach would probably be to use sub-grids plus modal actions for related records to one central hub record.  For example you have one edit form for an account, then a sub-grid of related contacts with an edit action and modal forms for those.
  • Suggested answer
    Fubar Profile Picture
    8,512 Super User 2026 Season 1 on at
    I would not recommend multiple forms on the same Web Page. I have seen someone use 1 form and then reformat each form tab, as a tab on the webpage using JQuery/JavaScript and CSS. But first step is to probably look as using a Multistep form as per Robert's post.
     
    Also, I can't remember which one (possibly may have been Community) but one of the old Dynamics 365 site templates used to have a set of Web Templates that behaved as Tabs.
  • Suggested answer
    Suriyanarayanan V Profile Picture
    201 on at

    You can place multiple entity forms on a single Power Pages page, but only if each form is creating or editing different records and does not conflict with the others.
    The error you’re seeing:

    “An entry with the same key already exists.”

    is a classic symptom of form metadata collisions.

    This happens when two or more entity forms on the same page try to register the same client-side key, usually because:

    • They are all create forms for the same table

    • They share the same form name, form ID, or HTML field names

    • They use the same entity logical name and Power Pages tries to bind them into the same context

    • They include identical attribute names (e.g., name, ownerid, createdon)

    • They load the same metadata scripts more than once

    Power Pages then attempts to build the form context dictionary and hits a duplicate key → resulting in the error.

    Why your setup is failing

    You have:

    {% entityform name: 'NewBoard' %}
    {% entityform name: 'Information' %}
    {% entityform name:'NewStaff' %}
    

    Even though the forms have different names, they are all:

    • Create forms

    • On the same page

    • Likely using the same table or overlapping fields

    • All loading the same entity form scripts (entityform.js, metadata, validation, etc.)

    This causes the duplicate key error.

    Is it possible to have multiple create forms on one page?

    Yes — but only under specific conditions.

    ✔️ Supported

    • Multiple forms for different tables

    • One create form + one edit form

    • Multiple forms if each has unique field sets and no metadata collisions

    • Using Web API + custom HTML instead of entity forms

    ❌ Not supported / problematic

    • Multiple create forms for the same table

    • Multiple forms that include the same attribute names

    • Multiple forms that rely on the same entity metadata

    • Multiple forms that load the same client-side keys

    This is why your page breaks.

    Recommended solutions

    Option 1 — Split the forms into separate pages

    This is the simplest and most stable approach.

    Use tabs or navigation to make it feel like one page.

    Option 2 — Use Web API + custom HTML forms

    Instead of entity forms, build your own forms using:

    • HTML

    • JavaScript

    • Power Pages Web API

    This avoids metadata collisions entirely.

    Option 3 — Use a single entity form with subgrids

    If the “Board Members” and “Staff” are related tables, you can:

    • Use one main form

    • Add subgrids for related records

    • Use “Add new” buttons inside the subgrid

    This is the most “Power Pages native” pattern.

    Option 4 — Use iframes to isolate forms

    Each iframe loads its own metadata context, so no collisions occur.

    Not elegant, but it works.

     

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 38

#2
Valantis Profile Picture

Valantis 36

#3
omkarsupreme Profile Picture

omkarsupreme 24

Last 30 days Overall leaderboard