Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Any possibility of dynamically adding a Spacer to a form using Javascript?

Posted on by 90

Hello everyone,

I was wondering if there's a way to dynamically add a Spacer to a form using Javascript. I am asking this because when we hide a field, the rest of the form gets shifted so I was thinking of Dynamically adding a spacer, but that would also mean we would have a way of identifying spacers to also remove them if the field is shown back on the form.

Any idea?

Thank you

  • Suggested answer
    Bipin D365 Profile Picture
    Bipin D365 28,964 Super User 2024 Season 1 on at
    RE: Any possibility of dynamically adding a Spacer to a form using Javascript?

    Hi,

    We don't have any OOB API available to do that.

    However, if you want to achieve this you can manipulate with DOM.

    What version of Dynamics CRM you are using, I ask this because D365 online which is a latest version does not have this issue. In UCI app when you hide any field on form whole form gets adjusted automatically.

    Please mark my answer verified if I were helpful!

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans