Hi kalor.
As you said, getValues() returns an object containing the value of each field in the form, so if you don't have a field associated to the field values that you want to retrieve, you are not able to do that in that way.

However, I suggest you to use "hiddenfield" to contains the values of those fields that you don't want to show on your form, but that you still want to be able to get their values using the "getValues" function.

Hi kalor.
As you said, getValues() returns an object containing the value of each field in the form, so if you don't have a field associated to the field values that you want to retrieve, you are not able to do that in that way.

However, I suggest you to use "hiddenfield" to contains the values of those fields that you don't want to show on your form, but that you still want to be able to get their values using the "getValues" function.

Hope this helps

That's messy and unneeded DOM elements. Using the built in functions to work with records is better.

That's messy and unneeded DOM elements. Using the built in functions to work with records is better.

I agree, but we don't know his application architecture, so he probably need to save the record inside the controller, and when he need to get all the complete record data (the one edited by the form and the one not visible inside the form), should merge the one retrieved by calling the "form.getValues() function" with the one stored inside the saved record.
However I agree on the fact that keeping the DOM clear on mobile apps has to be a priority.

I agree, but we don't know his application architecture, so he probably need to save the record inside the controller, and when he need to get all the complete record data (the one edited by the form and the one not visible inside the form), should merge the one retrieved by calling the "form.getValues() function" with the one stored inside the saved record.
However I agree on the fact that keeping the DOM clear on mobile apps has to be a priority.

So let's coach him the better way since he is already going to have a record from the list.