Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

The PCF control is not displaying in the area where it has been assigned

(0) ShareShare
ReportReport
Posted on by 24

Hi

 

I have created a Pcf control that will display 5 input dynamics fields.  When I assign the pcf control to the field "Pcf Question Input: the control is completely over lapping the entire form.  What is causing this issue.

 

sandzz_1-1710537023573.png

 


 

  • Verified answer
    skoofy5 Profile Picture
    480 on at
    Re: The PCF control is not displaying in the area where it has been assigned

    I’ve just had a quick look at your code and it seems like in your init you’re passing the root container off to an async process that will create your control, but then it takes that container and appends it to the document body. So you could start by removing “document.body.appendChild(this._container);” because the root container is already a part of the form and this is probably moving it higher up in the DOM.

    skoofy5_0-1710905926754.png

     

    To see what I mean I would recommend reviewing some of the samples like the ChoicesPicker which might also give you some direction as to how to use updateView instead of init - https://github.com/microsoft/PowerApps-Samples/blob/master/component-framework/ChoicesPickerControl/ChoicesPicker/index.ts

    https://learn.microsoft.com/en-us/power-apps/developer/component-framework/reference/control/init

    https://learn.microsoft.com/en-us/power-apps/developer/component-framework/reference/control/updateview

    You may also be interested in this implementation - https://pcf.gallery/pcf-form-json/

    Best of luck.

  • sandzz Profile Picture
    24 on at
    Re: The PCF control is not displaying in the area where it has been assigned

    Hi a33ik,

     

    Here's the pcf control

     

    https://github.com/retthom/pcfcontrol.git

  • sandzz Profile Picture
    24 on at
    Re: The PCF control is not displaying in the area where it has been assigned

    I will upload the code.

     

    Thanks

  • a33ik Profile Picture
    3,304 Most Valuable Professional on at
    Re: The PCF control is not displaying in the area where it has been assigned

    Hello,

    It's a bit hard to reply why your control behaves this way. It would be possible to analyze and give you any advice if you provide the code. You can upload the code of your control to GitHub and put a link here.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 65 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

Overall leaderboard