w2form.getCleanRecord

Returns clean record object
getCleanRecord([strict])
Returns object.
strict boolan, if true, it will remove all fields from record object that are not in fields array

Description

This method cleans record and returns it. Clean record is the one that has just ids for enum/list/combo fields and not the object with { id, text } values. Also, if you suply strict as true, it will remove all fields from record that are not described in fields array.
If you have following form: You can do:

User Comments

comments powered by Disqus