web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Increase the height of HTML Web Resource rendered in Portal

(1) ShareShare
ReportReport
Posted on by

Hi there!

I have configured an entity form in Dynamics 365 by inserting a HTML web resource in a section and set it's height to maximum value of 40.

Web-Resource-Properties.png

In Dynamics 365, the HTML takes up all the 40 rows and displays data as expected:

D365-Page.png

Where as in the Portal page, I can hardly see 4 or 5 rows dedicated for the HTML content:

8640.Portal-Page.png


I have already set the height of the HTML body to 100%, but no go.

I currently use Web Form in the Portal. Kindly suggest a solution to display HTML content with ample space (vertically) in Portal page.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Justinjose Profile Picture
    2,707 on at

    Hi Sharath,

    Can you try following code in the Webfrom Step

    $(document).ready(function () {
        $( "#WebResource_WebResourceName").height(500px); alert("loaded"); // remove after testing });

    Any queries please let me know.

    Thanks

    Justin Jose

  • Community Member Profile Picture
    on at

    Thanks Justin.

    I did try this, no luck.

  • Suggested answer
    Justinjose Profile Picture
    2,707 on at

    Hi Sharath,

    is that javascript loaded? can you add alert to make sure javascript is loaded ? Please #WebResource_ added before the web resource name.

    $("#WebResource_WebResourceName").height(500px);

    Thanks

    Justin Jose

  • Verified answer
    Community Member Profile Picture
    on at

    Hi Justin,

    Using"parent.$" did the trick. Marking this a suggested answer!

  • KoJaPD Profile Picture
    38 on at
    [quote user="Sharath Somanathan"]

    Hi Justin,

    Using"parent.$" did the trick. Marking this a suggested answer!

    [/quote]

    Sharath Somanathan

    Dear, Do you happen to have the full code you used? And where did you add this code?

    Thanks in advance,

    Koen

  • KoJaPD Profile Picture
    38 on at

    I have the same problem with a form on a powerapps portal: the form shows all files and folders from a OneDrive/Sharepoint document location, but it shows every folder (or file) on a separate page.

    pastedimage1602152523708v1.png

    how can I increase the height of the form so I get more folders (and files) on one page?

  • Suggested answer
    KoJaPD Profile Picture
    38 on at

    For anyone looking how to expand the height, I finally found it after a few hours digging. It was already shown on the first screenshot of the OPs message...

    it seems only available in the legacy web client for powerapps settings:

    Settings - Customization - Customizations - Customize the System

    then go to Components - Entities - [your entity] and open [your form]

    in the (legacy) form editor, double click the control (in my case "New SG Control xxxxx"), go to formatting and activate the checkbox "Automatically expand to use available space".
    pastedimage1602161085615v1.png

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans