Microsoft Dynamics CRM 4.0 Removing commas in integer field September 2, 2010
Posted by jarrettexpertcrm in Microsoft CRM General.Tags: crm, crm tips, Dynamics Four, Dynamics4, jscript, microsoft crm, Microsoft CRM 4.0, Removing Commas, Removing commas jscript
trackback
Sometimes it is necessary to have int fields without the commas. Place the following code onload:
if(crmForm.all.fieldname != null && crmForm.all.fieldname.DataValue != null)
{
crmForm.all.fieldname.value = crmForm.all.fieldname.DataValue;
}
Thats all it takes. Enjoy!
For more information about Dynamics Four or to contact us please visit http://www.dynamics4.com
very handy – thanks for posting!
Your Welcome! Im glad my post was able to help you
-JC
that works great on forms. What about getting it to display in grids this way ?
not quite sure what you mean. If you save the form after the code fires and removes the commas, the data should save in that format and display in the grid view