hey guys, I'm at the point to where my script is w...
# suitescript
s
hey guys, I'm at the point to where my script is working, only thing is the lineInit event isn't triggering whenever the user moves away from the sublist field, the field that should auto-populate is set to a default value before the page loads so there's a value there already, I've noticed that the script will populate the field only after adding the line, then navigating back to the setCurretnSublistValue target field, and selecting the field
b
weakness of lineInit, the first line is already selected on page load
s
can I use a seperate script, say Userevent to wipe out the field
b
usual workaround is to use the same logic in pageInit
you could also be lazy and cancel the sublist in pageInit
s
thank you for the guidence @battk I'm going to attempt to use a pageInit, lets see if it's not too heavy