+ Start a Discussion

Lightning - Error when updating record (Percent Field)

Good Morning, 

In my lightning page , I want to enter a percentage and update the line in the database.
When I insert for exemple 5.99 I have this error in my log:

User-added image

<div class="slds-col slds-size--1-of-8 slds-m-left_small">
                                <span><lightning:input type="number" aura:id="perczone" min="0" formatter="percent-fixed" onchange="{!c.updateZoneValues}"  step="0.01" name="globalObjective" label="" class="slds-p-horizontal_x-small" value="{!item.globalObjective}" onblur="{!c.alertpercent}"/></span>
Best Answer chosen by Dev87
Probleme resolved, 

In my apex class, I changed the declaration of the field from Integer to decimal