Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Hide section border in dynamics 365 crm form

(0) ShareShare
ReportReport
Posted on by 185

Hi,

I am currently using dynamics 365 crm online. I placed a webresource (html button) with in a section of a tab. Everything works fine.But, I am unable to hide/remove the section border(thin dark border ,which can be seen for all sections on the form) that comes around the webresource (html button).I even tried adjusting the size of the html button for fitting exactly into the section border.But, that's also not happening. Can some one please suggest me? The border around the button looks so odd as in the attached image.Section-border.JPG  

*This post is locked for comments

  • ajyendra Profile Picture
    ajyendra 1,730 on at
    RE: Hide section border in dynamics 365 crm form

    Hi Oliver,

    There is no predefined function for that if you want that you can do through Classes and ID of that Section and apply CSS (border:0) when page load in JS. Not Recommended because classes might Change in future.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Hide section border in dynamics 365 crm form

    We are also having this issue with Dynamics365. can anyone help with removing the border that is automatically placed around HTML sectins on a form. We want to remove it

  • Dynamics 365 CRM Profile Picture
    Dynamics 365 CRM 185 on at
    RE: Hide section border in dynamics 365 crm form

    Hi Wei Jie Fun  & Amit,

    Thank you both for your effort. In the both the screenshots those are shared by you respectively , we can clearly see the section border. Can we remove that border ?

  • RE: Hide section border in dynamics 365 crm form

    1464.SubmitButton.PNG

    Hi,

    I also tried the same and it behaves properly without any unnecessary border.

    Thank you

    Amit Kumar Rath

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Hide section border in dynamics 365 crm form

    Hi,

    I used your code, but i didnt see the border, which browser and version you are using?

    5483.24.PNG

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,050 on at
    RE: Hide section border in dynamics 365 crm form

    Could you share a screenshot please?

  • Dynamics 365 CRM Profile Picture
    Dynamics 365 CRM 185 on at
    RE: Hide section border in dynamics 365 crm form

    Hi Kokulan,

    I am not referring to webreource border,I am referring to the section border. Anyways, I already unchecked it.

  • Dynamics 365 CRM Profile Picture
    Dynamics 365 CRM 185 on at
    RE: Hide section border in dynamics 365 crm form

    Hi Wei ,

    Please find below my code. When I try to increase the height/width , button is shaping out instead of fitting into the section space.

    <html><head>

    <script type="text/jscript">

    function submit_onClick() {

       window.parent.Xrm.Page.data.entity.save();

    }

    function hidesubmit()

    {

       if(window.parent.Xrm.Page.getAttribute("createdon").getValue() != null)

           document.getElementById("sbutton").disabled=true;

    }

    window.onload=hidesubmit;

    </script>

    <meta charset="utf-8"></head>

    <body style="overflow-wrap: break-word;">

    <button id="sbutton" style="width: 200px; height: 40px;" onclick="submit_onClick()" type="button"><b>Submit</b></button>

    </body></html>

  • Suggested answer
    Kokulan Profile Picture
    Kokulan 18,050 on at
    RE: Hide section border in dynamics 365 crm form

    Hi

    Could you try hiding the border for your web resource and it should resolve your issue?

    ScreenClip-_5B00_278_5D00_.png

  • Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Hide section border in dynamics 365 crm form

    Hi,

    would you mind to share your html code in 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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans