Discussions
Cannot set Customer Type on page load
Hi all,
I have a user event script that redirects back to a record in edit mode for a prospect record after clicking on Save. For some strange reason it keeps defaulting the company type to 'Company' on page load. Here's the script:
nlapiSetRedirectURL('RECORD', 'prospect', theid, true);
My prospects are all individuals and each time this happens their first name and last name becomes blanked out. Is this a bug?
I try ot set the type back to individual by using the line:
record.setFieldValue('isperson', 'T');
but no joy.
I try to set the type back to Individual through the use of client side scripting but I'm getting a Javascript error. The code for this is: