Hello, I'm trying to set up input search criteria on 2 fields, then based on input values, search collection then perform average on each field. I have my javascript [to calculate average] working but I'm not sure what the code for the 'edit js' button on 'where' request should be.
This is my 'edit js' code on 'where' request but I don't think it's right. I have another js running on event for service which calculates the average.
console.log('{"incident_state":"' + Appery('report_input_state').val() + '", "incident_county":"'+Appery('report_input_county').val()+'"}');
return '{"incident_state":"' + Appery('report_input_state').val() + '", "incident_county":"'+Appery('report_input_county').val()+'"}';
Does that 'edit js' look right? it's mapping to a storage variable called 'where'