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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How to expand and shrink the web resource occupied space in Form

(0) ShareShare
ReportReport
Posted on by

Hi ,

I've  created multi select option by web resource and i want to align form accordingly but its not I've set web resource property "number of rows the control occupies" as 4 and "Automatically expand to use available space as unchecked".

2768.Web-resource.png

Its showing fine but when the below fields hides the size remains same

Web-resource1.png

I want to expand and shrink the web resource occupied space accordingly

Note: if i mark "Automatically expand to use available space" as Checked then it took 6 -"number of rows the control occupies" .

Thanks,

Mani

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    Mani,

    I hope that if you increase the number of rows from 4 to 8 or something in the properties page, the html space expands.  By doing this you can expand or shrink the html content.

    Thanks,

    Vignesh Mohan

  • Community Member Profile Picture
    on at

    Hi Viki,

    That gives fixed size to the web resource.But its not shrink and expand dynamically.

    Thanks,

    Mani.

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi,

    just tick the auto expand check box:

  • Community Member Profile Picture
    on at

    2017_2D00_10_2D00_03-12_5F00_55_5F00_50_2D00_Form_5F00_-Contact.png

  • Community Member Profile Picture
    on at

    Hi Guillaume Domont,

    If i choose that it automatically fixes the row size as 6 even if i changed that size as 2 .

    Thanks,

    Mani.

  • Suggested answer
    Community Member Profile Picture
    on at

    On the event which shows the web resource, add the following line through JS

    formContext.getControl("WebResourceName").getObject().style.height = "400px";


    and on hide event, add the following,

    formContext.getControl("WebResourceName").getObject().style.height = "0px";
    

    You change the height value as per your requirement.

    I hope this resolves the issue. Mark it verified if 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans