Discussions
problem in javascript code for custom ckeckbox
hi
i face a problem in javascript code for custom ckeckbox field.i created saved search contains 6 sales order and in each sales order i created custom checkbox with 'custbody_survey_sent' id then i wrote the following code which search on every sales order in this saved search and checked this custom checkbox for every sales order. my code doesnt work and i cant know where is the problem in it.
this is my code:
>>>>>>
function survey()
{
//saved saved search sales order in array
var searchresults = nlapiSearchRecord( 'salesorder', 207 , null, null );
for(var i=0; i<=searchresults.length; i++)