Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
Input Number with decimals not rounding while saving — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Input Number with decimals not rounding while saving

Accepted answer
12
Views
2
Comments

Summary: While Saving data with decimals in the custom object in app extension, the data is not being rounded while saving.


Content (required): Hello, we created a simple create form for a custom object where the input is a number with 4 decimal point


<oj-input-number value="{{ $variables.customObject.customfield}}" label-hint=" FTE"

virtual-keyboard="number"

converter='{"options":{"minimumFractionDigits":0,"maximumFractionDigits":4,"decimalFormat":"standard"},"type":"number"}'

required="true">

</oj-input-number>


The value in the UI rounds as expected when the user enters on the front end, however while saving on the database, it stores the entire value without being rounded as shown in the UI

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!