You need to sign in to do that
Don't have an account?
mac admin
How can we remove comma from the Number field
How to remove the comma from the Number field
Hi everyone,
how can we remove comma from the nuber field from the edit page. In detail page we can use formula field and we can diaplay the number without comma but in the edit page I'm not able to display.
Can anyone help me over here.
Thanks in advance.
Regards,
mac.
Hi everyone,
how can we remove comma from the nuber field from the edit page. In detail page we can use formula field and we can diaplay the number without comma but in the edit page I'm not able to display.
Can anyone help me over here.
Thanks in advance.
Regards,
mac.
If you are making use of VF Page,
Try using the below javascript code in your edit vf page
var a = parseFloat((document.getElementById('{!$Component.theForm:pgblck:accnum}').value).replace (/,/g, ""));
NOTE: ('{!$Component.theForm:pgblck:accnum}') - This should consist of id of the field strating from the node.
If you are not making use of VF Page,
Try creating the below Formula Field
Create a new custom field, where type is "formula" and the formula return type is "text".
In the formula, use the TEXT() function, and pass the existing number field value into this formula. For example, if your number field is Number_c then your formula would be: TEXT( Number_c )
Your users will enter values into the existing number field, but you can use the formula field (which doesn't display thousands separators)
Mark it as solution if it answers your question.
Rgrds,
Rabi