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 / Dynamically show contr...
Power Pages
Unanswered

Dynamically show control in portal

(0) ShareShare
ReportReport
Posted on by 66

Hi,

 

How can i dynamically create/show controls (label, radio button, date, textbox) on web page based on data in entity and save it also.

Please any pointer would be helpful, that what should be the approaches to generate control and save data.


Thanks

Categories:
  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    There are a few resources online that will help you on that:

    https://docs.microsoft.com/en-us/powerapps/maker/portals/configure/add-custom-javascript

    https://www.engineeredcode.com/blog/powerapps-portals-liquid-and-javascript-better-together

    https://github.com/dynamicscode/XrmPortalJS

     

    if you can't find what you need, please explain your scenario and we can help you with that

  • jeffgreenrc Profile Picture
    66 on at

    Thanks for your response.

     

    For e.g I have Polling scenario, in which user provide their input to various questions and each question can be of different type i.e. text, date, yes no and etc.

     

    So based on this data store in entity, how can generate different controls for questions and be able to save them.


    Thanks

     

  • oliver.rodrigues Profile Picture
    9,482 Most Valuable Professional on at

    Hi

    Yeah, you need to apply JS into your Web Page or Entity Form, etc, something like:

    var value = $("#<field1>").val();
    
    if(value === "xxx")
    
     $("#<field2>").closest("td").hide(); // .show();

     

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 Pages

#1
Mohsin Ali Profile Picture

Mohsin Ali 18

#2
11manish Profile Picture

11manish 16 Super User 2026 Season 2

#3
Harshit Chaubisa Profile Picture

Harshit Chaubisa 4

Last 30 days Overall leaderboard