D365 portal is not able to format the currency field. It shows like that
I also try to use mask but that is not solve my problem.
https://oliverrodrigues365.com/2020/04/15/power-apps-portals-adding-field-mask/
I use the following java script.
$(document).ready(function(){
// Hide default currency icon from this form
$("span."+"input-group-addon").hide();
// Set currency icon
var std_classfee_onload = parseFloat($('#std_classfee').val());
$('#std_classfee').val(new Intl.NumberFormat('de-DE', { style: 'currency', currency: 'EUR' }).format(parseFloat(std_classfee_onload)));
// Form validation for next button or save button click
window.webFormClientValidate = function () {
// Presave remove currency icon
var std_classfee_presave = parseFloat($('#std_classfee').val());
$('#std_classfee').val(std_classfee_presave);
};
});
For more about Intl.NumberFormat please check.
After using this script now currency field into portal look like
Comments
Post a Comment