- Fri Jun 21, 2019 4:22 pm
#825048
Hello everyone.
I'm trying to set a currency format (2.000.000,00) to a textbox in a grid. I saw a post here: viewtopic.php?t=709332
I follow this code: https://wiki.processmaker.com/3.0/Addin ... orm_Fields
I'm working with bitnami windows installation.
PM: 3.3.3 CE
I add the process when is the form (just 1 task - 1 form) so anyone can give me a solution.
This is the error that show :
I'm trying to set a currency format (2.000.000,00) to a textbox in a grid. I saw a post here: viewtopic.php?t=709332
I follow this code: https://wiki.processmaker.com/3.0/Addin ... orm_Fields
Code: Select all
But when i run the preview i have this error: "Cannot read property 'decimal' of undefined" that i don't know how to solve.var gridId = "orderList"; //set to ID of grid
var fieldId = "amount"; //set to ID of text field inside grid
//set the thousands separator in all existing rows when the Dynaform loads:
var nRows = $("#"+gridId).getNumberRows()
for (var i = 1; i <= nRows; i++) {
$("[id='form["+gridId+"]["+i+"]["+fieldId+"]']").maskNumber({decimal: ',', thousands: '.'});
}
//set the thousands separator in newly added rows:
$("#"+gridId).onAddRow(function(aNewRow, oGrid, rowIndex) {
$("[id='form["+gridId+"]["+rowIndex+"]["+fieldId+"]']").maskNumber({decimal: ',', thousands: '.'});
});
I'm working with bitnami windows installation.
PM: 3.3.3 CE
I add the process when is the form (just 1 task - 1 form) so anyone can give me a solution.
This is the error that show :
Attachments
(47.67 KiB) Downloaded 290 times