Ok...this might not be *exactly* what you are looking for but you can dynamically change field names with javascript.
ie:
inputs = document.getElementsByTagName("input");
for(i=0; i < inputs.length; i++){
inputs[i].name="my_name";
}
quick edit:
You would need to call this type of javascript before the submit or posting of the form. Ideally you would use it with jquery or even a simple
<code><body onLoad="javascript_function" ></code>
Otherwise the post data of the form will send with the originally named fields.
bah. Edit # 2:
If you are terribly bored you can always write up a javascript class that changes the element name to the class name. You CAN change the css class name with GF so..it would then matter very little how you arranged your fields.
Last edit, I promise.
A long way to do it is to send the data using javascript. You would still need a similar function as listed above, but just pointing out that it is an option.
Posted 14 years ago on Friday November 26, 2010 |
Permalink