I'm a bit of a novice to all this suite script stuff, so any help would be most appreciated.
Here's the scenario:
I have a field on a phone call form that when the form is saved/submitted, that field value will map back to a field on the customer form.
The fields are both list type fields, and they have the same values available. My goal was to have an afterSubmit function update the customer form. Below is the code that I've come up with after searching what others have done and trying to decipher the developers guide.
function afterSubmit(type) { nlapiGetFieldValue('custevent_acct_health_phone_field') nlapiSubmitField(customlist, 31, 'custentity_account_health','yellow' 'red' 'green' ) } So I have the nlapiGetFieldValue function to get value from the field that I want to reference, and the nlapisubmitField function to apply that value to the field on the customer record. The colors that I have are our health coding for our clients. The user has the option to choose any one of these from the list, so it was my understanding that I would need to include these as an array (if it's even entered correctly) so that the possible value is listed in the code.Like I said, I'm sure I'm missing some very basic stuff here. I'm attempting to learn Javascript to help myself learn what NetSuite uses, but I'm still pretty green. Maybe I should preorder the "NetSuite for Dummies". Thanks for any help!!-Kurt