Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.

Moderator: amosbatto

Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
User avatar
By jemiris
#816065
Hi,
I have followed the documentation for adding the mask for currency https://wiki.processmaker.com/3.0/Addin ... rical_Mask. But using that I'm facing some issue I'm trying to enter 100. So I need to type extra two zeros. so that it converts as 100.00.
Requirement:
I need to add the mask after the user enters the field. If the user enters 1200.20. The system should add a comma like this 1,200.20 or give me any other solution.
By amosbatto
#816131
As explained in the documentation, Normandes Junior's mask is designed to do exactly what you want. It adds two decimal numbers and inserts a thousands separator. Are you calling it this way?
Code: Select all
$("#id").getControl().maskNumber();
User avatar
By jemiris
#816135
Yes, I'm calling this way. like
$("#id").getControl().maskNumber();
But the difficulty is if I want to enter 100. I need to type 10000. So that it calculates as 100.00. Each and every time I need to type extra two zeros. This is difficult while entering more numbers of the amount fields like amount, total and etc..

For single field this functionality accepted but more fields I have to enter for every fields extra two zeros. In that case, it fails :?:

In the 2.0Version it was much easier

https://wiki.processmaker.com/index.php/2.0/Common_Field_Properties#Converting_Masked_Numbers

Give us the better solution for this.
By amosbatto
#816159
It doesn't look like any of the standard JavaScript masks provide this. For example:
https://github.com/RobinHerbots/Inputmask

I don't have time to play with this right now, but you can implement it yourself. See:
https://stackoverflow.com/questions/240 ... mal-places
By amosbatto
#816178
You need to do it this way:
$('#currency').getControl().inputmask('currency');

or this way:
$('#form\\[currency\\]').inputmask('currency');

Dear amosbatto and team i tried to fix this issue[…]

Hi Amos, as regards the line breaks, this always […]

routeCase SOAP API error

It is working now and we are able to route a case.[…]

Hello, since the update to Version 3.2.3 I have t[…]