I have a client who is using an online case form in their center. Strangely, NetSuite does not pass contact information for the current logged in user, only their user id (nluser).
Client wants to default the first name, last name to the logged in user and can not. I tried Client-side script but that gives me empty values (of course). I tried Server-side script for beforeLoad to see what might be available and at a minimum grab the nluser id and do a search for the contact information of that user to pre-populate the fields.
Seems that beforeLoad does not run when an online form loads. However it does run when you open an already submitted case from the view list of cases.
I suspect that beforeLoad is only good for the underlying case record that gets created when the user submits the online form but not for the online form itself. However, I have a need to get this information prior to submitting and creating the actual case record in NetSuite. I'm not sure why this info is not already defaulted for online forms but needs to be. If the user enters a different name it creates a new contact record which is also not right.
Has anyone else run into this problem? Am I missing something? Is there a way to get the logged in user's contact info into this online form?
Help is needed. Thanks.
-Steve