Hello everyone, I have a suitelet that calls a cus...
# suitescript
n
Hello everyone, I have a suitelet that calls a custom function in client script through a button click but it seems to be not working: suitele code:
Copy code
form.addButton({
                        id:'submitbtn',
                        label :'Submit',
                        function:'updateParentForm'
                    });

      
       var sSearch = getSearch(form,itemID,locID,subList1);



       form.clientScriptFileId = 8896361;

            context.response.writePage(form);
Client :
Copy code
function updateParentForm(){

	alert('xxxxxx');


	var currentRecord = context.currentRecord;
	var sublistId = context.sublistId;
	var sublistFieldName = context.fieldId;
	var line = context.line;

alert('testing!!')
}

return {

		fieldChanged: fieldChanged,// THis field change works!!
		updateParentForm:updateParentForm

	};
FieldChange works but Alert() in updateParentForm not working!! Kindly help here!
e
enable the console (F12 Dev Tools) and see if any errors exist when clicking?
n
sure thanks