Hi everyone, so im new to suitescript and im in ne...
# suitescript
t
Hi everyone, so im new to suitescript and im in need of help. I'm trying to create a client side script with the fieldChanged entry point, and im following a tutorial on the netsuite LCS platform but for some reason after i deploy the script , my form fields get this forced focused state where i can't click out of a place once i've clicked on it This is the code
Copy code
/**
 * @NApiVersion 2.x
 * @NScriptType ClientScript
 * @NModuleScope SameAccount
 */
define([],

function() {
    
    
    function fieldChanged(context) {
    	var employee  = context.currentRecord;
    	
    	if (context.fieldId == 'phone'){
    		var fax = employee.getValue('fax');
    		
    		if (!fax){
        		var phone=employee.getValue('phone');
        		employee.setValue('fax', phone);
        	}
    	}
    	
    	
    }