You need to sign in to do that
Don't have an account?

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:

<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>
</div>
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:
<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>
</div>
In my apex class, I changed the declaration of the field from Integer to decimal