I am having issues with a suitelet and a clientscr...
# suitescript
c
I am having issues with a suitelet and a clientscript update. The suitelet has 2 entry fields and then I am getting a percentage and this looks correct when you load the page and if it has values already there. However I have a client script that recalculates the value if you update either side, but for some reason it returns a decimal.
This is after i updated to 200. (.20 x 100 = 20)
s
I don't understand the problem, are saying you want the field to display as
20%
instead of
20
?
c
yes. That's how it displays if data is in there when the suitelet loads
When I loaded the suitelet if there is data in those columns it displays as a percent, but if I update one of the values it goes to an unrounded number
This is when the Suitelet first loads and both cols have 4 and 6.
This is when I delete the 4 and retype it. There is a client script that is attached to this field because the 4 and the 6 get updated to a record immediately after they type and tab out
I am just going to see what they think. It probably doesnt matter because even when it exports it switches back to just 66.67
b
what does the code look like