Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to add 2 decimal points given a whole number? #9515

Open
lbonite1 opened this issue Feb 24, 2025 · 1 comment
Open

Is there a way to add 2 decimal points given a whole number? #9515

lbonite1 opened this issue Feb 24, 2025 · 1 comment

Comments

@lbonite1
Copy link

I am using this

{ "name": "fromUnits", "placeholder": "Unit(s)", "maskType": "number", "maskSettings": { "min": 0, "precision": 2 }, "title": "From:", "validators": [ { "type": "numeric", "text": "Unit(s) cannot be less than zero.", "minValue": 0 } ] }

If I input 3 and press enter or click out of focus from the question

is there a way to display the value as 3.00

@lbonite1
Copy link
Author

{
"type": "multipletext",
"name": "From And To Units",
"visibleIf": "{panel.Action Required} anyof ['add', 'organization', 'funding', 'supervisor', 'title', 'delete']",
"startWithNewLine": false,
"title": "From and To Units:",
"requiredIf": "{panel.Action Required} anyof ['add', 'delete', 'title']",
"items": [
{
"name": "fromUnits",
"placeholder": "Unit(s)",
"maskType": "numeric",
"maskSettings": {
"min": 0,
"precision": 3
},
"title": "From:",
"validators": [
{
"type": "numeric",
"text": "Unit(s) cannot be less than zero.",
"minValue": 0
}
]
},
{
"name": "toUnits",
"placeholder": "Unit(s)",
"maskType": "numeric",
"maskSettings": {
"min": 0,
"precision": 3
},
"title": "To:",
"validators": [
{
"type": "numeric",
"text": "Unit(s) cannot be less than zero.",
"minValue": 0
}
]
}
],
"colCount": 2
},

this is my form settings for this task. Is there a way to display up to two decimal places ex.( .00 or .30 ) if they input an integer or if the user inputs something like this 3.5 to show 3.50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant