...
In the example above the source data '000000123' would appear as '***123.00' in the output.
- Edit Mask - Is used to block off certain characters so they cannot be changed in the input field.
In the example below the edit mask used in conjunction with the edit word property allows the '/' characters to not be removed when backspace or the delete key are used.
- Currency Symbol - Used to place a character or string representing currency to precede the data. For example '$', '€', or 'Dollars: '.
...
Custom JavaScript Function Example:
Here you can see how to use the custom JavaScript function. This is used to produce custom formatting along with JavaScript code from a separate JavaScript file placed in the userdata/custom/js folder on the IFS.
In this example the function determines if the value is greater than 50 it will append '19' to the front of the year, and '20' if not.
Code Block |
---|
function myFunction(num)
{
if (num.value > 50)
{
return "19" + String(num.value);
}
else
{
return "20" + String(num.value);
}
}
|
Custom Date/Time Pattern Example:
In the example you can see the pattern M - D - Y / g:i A would return the following format.