ehcanadian
12/16/2019, 9:13 PM0
in the amount field on a line? I'm trying in validateLine
. Both setCurSubText and setCurSubVal return an error using 0
(must be greater than 0) and using .00001
throws an error and enters a number in scientific notation.ehcanadian
12/16/2019, 9:31 PM'0.0001'
workedMTNathan
12/16/2019, 9:40 PM'0'
might work as well - it's probably reading 0
as null (I'm guessing your error was for missing the required value
)ehcanadian
12/16/2019, 9:41 PM'0'
doesn't work: Invalid number (must be greater than 0).
MTNathan
12/16/2019, 9:44 PMamount
field on plenty of lines to 0 in script before - what transaction type/item type are you working with?ehcanadian
12/16/2019, 9:45 PMehcanadian
12/16/2019, 9:46 PMMTNathan
12/16/2019, 9:49 PMcurrentPage.setCurrentSublistValue({
'sublistId':'item',
'fieldId':'rate',
'value':0
});
Not sure if it'd work for your use case, but perhaps setting rate
instead of amount
and letting the sourcing do its thing for amount
would get around that error?ehcanadian
12/16/2019, 9:50 PMvalue: '0.0001'
works, so I'm good!