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 / (In portals) Dynamical...
Power Pages
Answered

(In portals) Dynamically add a new control (text input for example) after clicking a button

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi! In the portals, when I enter a text box, I feel like I need a second one.Can I add a new button to create the same second text box?See pictures for details.Thank you for your help!

2020-01-02 10_07_06-放货 · 起点门户.png
Categories:
I have the same question (0)
  • Verified answer
    Sandeep Dhanrajani Profile Picture
    Microsoft Employee on at

    Yes you can add another text box but I'd ask what is it that you are trying to achieve since there can be more ways to do this. e.g.

     

    If your scenario is only limited to exactly one additional text field then you can achieve it by having that additional 'Additional Agent Name' field and another boolean field say 'Add more - Yes / No' configured as fields on the entity and put on the entity form as well.  Then using JavaScript on the entity form you can have the 'Additional Agent Name' field show or hide based on the respective value of the boolean field. 

     

    However if your scenario demands multiple additional 'Agent Name' fields and can go up to 'N' in that case I'd suggest capturing Agents in another entity and having the relationship configured with your primary entity in a 1:N way, so that you can show the Agent subgrid on your primary entity form.

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Valantis Profile Picture

Valantis 41

#2
sannavajjala87 Profile Picture

sannavajjala87 28 Super User 2026 Season 1

#3
11manish Profile Picture

11manish 26

Last 30 days Overall leaderboard