I have a portion of a script created to assign text form field values to a JS object to be added to another. While the script performs as anticipated, I can't help but think that there exists a better and shorter JS to accomplish the same task. For clarification, the form field names used to provide property values for the object to be added are prefaced with inf. whereas the value for the object name too be added gets assigned from a combo drop down field that serves as the event.value in the script. The portion of the script I am interested in refining is as follows:
Given the names of the form fields, I don't see how I can shorten the script by using a loop but then again I may be missing something. Any suggestions regarding this subject matter are most appreciated. Thank you ahead of time.