Hello,
I am stumped. I need to be able to convert a number to its ones value only. For example: if someone enters 65, I need it to return only the 5. Another example: 87 returns only the 7, etc. There will be no decimal numbers.
Any idea how I could accomplish this?
Thank you
Solved! Go to Solution.
Views
Replies
Total Likes
The below script will give you the desired data.
var yourFieldValue = yourField.rawValue;
var convertedValue = yourFieldValue.toString().substr(-1);
The below script will give you the desired data.
var yourFieldValue = yourField.rawValue;
var convertedValue = yourFieldValue.toString().substr(-1);
Wow thank you Vijay. It's embarrassing when the answer is literally two lines
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies