Few days back, I got a requirement to have a form for creating a new Lead record by end user. So obviously end user doesn’t have any netsuite credentials.
Client also added that, they have some parent-child fields(dependent fields) that needs to be shown in the form. So when user selects an element in Field A, Field B will be automatically changed as per the selecting element in Field A.
How did I approach: I was planning to create a suitelet form having “Available with out Login”.
For dependent fields, I was planning to create a client script that will be dedicated to that suitelet script. And will ad an field-change event to the client script which will do my job.
But surprisingly when I added code “nlapiLookupField()” to fetch record, it was showing some error. Then I tried using “nlapiLoadRecord()” and I was still getting error. I couldn’t understand, why the record is not loading. Then after digging much into it, I just tried the same by unchecking the “Available without Login” in the suitelet script and the error is gone.
You don’t believe??? Try it. Event I didn’t find any logic why its not working for “external URL”. I have tried the same by toggling that checkbox for making sure.
Then I conclude that, fetching record in client script that’s dedicated to a suitelet script which is having available without login is not working. I guess we have to find some other way…..
Please correct me, if my understanding is wrong, or you got some other solution to handle it.
Hope to get some better solution from you guys…