I've got a SS1.0 Suitelet that I'm running into an...
# suitescript
m
I've got a SS1.0 Suitelet that I'm running into an issue with and I'm completely stumped. In the POST (upon submit of an nlobjForm created in the GET), I've historically been getting the field values like so (simplified example):
Copy code
var params = request.getAllParameters();
var fieldValue = params['custpage_field_id'];
Today I added a couple new fields and for some reason fieldValue is coming back
undefined
for the new fields even though the following works with the exact same field id:
Copy code
request.getParameter('custpage_field_id');
Has anyone seen this before/does anyone know why
request.getParameter(x)
would return something different than
request.getAllParameters()[x]
? The first method continues to work for all of the fields that existed previously as well, which is what makes this so confusing.