How do you set a Time of Day field through suitesc...
# suitescript
n
How do you set a Time of Day field through suitescript? The value I am trying is 15:34 and it gives me an error. Also tried format.parse for time of day and still didn't work. This is the error: You have entered an Invalid Field Value 15:34 for the following field: custbody_rfpproposalduetime
s
This works for me in the dev console,
rec.setText('fieldId', '3:34 PM')
using
15:34
appears to have worked as well
My guess would be the actual value stored in the field is a regular date, but then it just displays the time bit and allows you to set it only using the time bit with setText
n
That seemed to go through. thanks
137 Views