I have one more question. I created a lineinit sc...
# suitescript
p
I have one more question. I created a lineinit script that populates two field values. The issue is the initial line created is not populating the two fields. What is the best way to fix this?
r
Put the same logic in the page init event. Then use record.selectLine
p
what do you mean by the same logic in the pageinit event? do I need to check for the current line?
r
You need to select the first line in your pageInit function, after selecting the line you can set the line field values like you do the lineInit function