is it possible to know if field is filled or not? ...
# suitescript
s
is it possible to know if field is filled or not? How do I do this verification?
c
In a client script? Or something else?
s
No. UserEvent
c
Just use getValue? Or am I missing something?
s
I need to check a record, and know if it's filled, I have to do something
Do you recommend using Record.getValue?
s
I really dont get the question, whats the purpose, whats the context
If you want to check the value of a body field, search.lookupFields is the preferred slimmer version. It doesn't tell you anything about it being "filled", just because a field is not empty does not mean its not filled out, it could be intentionally empty.
s
I don't know if that will be clear, when a record is filled, it will also fill in a duplicate of an invoice, based on payment terms. He understands? I was asked to do this, so I'm looking for some way to accomplish this task. He understands?
b
Aa @Sandii suggested, you will have to check for a field in the record to validate your condition. For any case/condition, it would be enough to check a field or few fields. Try and find the field on the record that does the job for you.
😁 1