function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mukesh guptamukesh gupta 

ui:inputCurrency

Hi Expert,

I am using below code but not able to get maximum length  on keyUp event.

 
<ui:inputCurrency class="slds-input" aura:id="curr" format="##,##,###,##0.00" maxlength="6" updateOn="keyup" keyup = "{!c.changesValueInput}"/>

Please suggest
 
Danish HodaDanish Hoda
Hi Mukesh,
You should rather use onchange in <lightning:input type="currency" format="" onchange="{}"/>
mukesh guptamukesh gupta
Hi Danish,

I am using ui:inputCurrency because user can't ennter multiple comma  or dot between amount, and after type digit,  amount auto format according organigation local 'france', but not i want to set  maxlength for user , means user should abl eto enter more then 6 digit.
User-added image

Regards
Mukesh
Danish HodaDanish Hoda
Hi Mukesh,I would suggest you not to use maxlength attribute here. Rather, use your logic in the  changesValueInput() method to check the length of the input value. In tjis way, user can enter more than 6digits and you can perform your logic to display it on the UI