locked
The default alignment of numbers on a CRM form is left, how to right align a specific number field on a form in dynamics 365/CRM 2016 (online and on-premises) RRS feed

  • Question

  • I have tried using javascript

    document.getElementById('fieldname').style.textAlign="right";

    as well as changing CRMWeb\_forms\controls.css    direction of INPUT.ms-crm-Number field's 'direction' attribute from 'ltr' to 'rtl' and changing text-align attribute to  'right'

    but nothing seems to work. I just want to change alignment for few of the number(decimal) fields not default css of all the number(decimal) fields.

    Friday, February 3, 2017 7:19 PM

All replies

  • document.getElementById is depreciated is CRM 2016, you will have to look through the XRM reference to see if anything fits what you want to do.

    Try using the SPACER on the customization form section.

    Friday, February 10, 2017 2:51 PM