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

how to convert string data type field to integer in lightning aura components

I have one requirement I have field capacity of type string in a custom object, but I want to convert that capacity field into an integer(number) in lightning aura component, can u please suggest me with best answer
Kamran HanifKamran Hanif

You can pass the value to controller and you can process value in JavaScript and return to aura component as a string. I hope it solves your issue.

For further assistance if you could post whole problem it can be looked into thorougly. Good day!

Thank you kamran