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.
User avatar
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.
User avatar
By amosbatto
#816178
You need to do it this way:
$('#currency').getControl().inputmask('currency');

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

Hi, I tried to disable the grid with JavaScript. […]

Useful.. https://crbtech.in/online-dot-net-trainin[…]

I used your example as a base to fixup my flow and[…]

There is a third parameter in the sendMessage() fu[…]