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)

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

I have the same question (0)
  • Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

    would you mind to share your html code in here

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    Hi

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

    ScreenClip-_5B00_278_5D00_.png

  • Dynamics 365 CRM Profile Picture
    185 on at

    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>

  • Dynamics 365 CRM Profile Picture
    185 on at

    Hi Kokulan,

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

  • Suggested answer
    Kokulan Profile Picture
    18,054 on at

    Could you share a screenshot please?

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    Hi,

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

    5483.24.PNG

  • rath.amit38@gmail.com Profile Picture
    2 on at

    1464.SubmitButton.PNG

    Hi,

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

    Thank you

    Amit Kumar Rath

  • Dynamics 365 CRM Profile Picture
    185 on at

    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 ?

  • Community Member Profile Picture
    on at

    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

  • ajyendra Profile Picture
    1,738 on at

    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.

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