I've been playing with the hooks all night, but I still can't find a way to create a custom field the way I want.
Technical question:
I'm using gform_add_field_buttons to add a new button, which has onclick = "StartAddField('vehicleyear')". When I click on the new button, it adds the field but I can't edit it. Is there a way to create a pre-propulated select field?
Background:
I'm setting up a insurance quote form for my client, and they want the vehicle year and model to be pulled form somewhere else. I also want to make it extremely easy for them to customize the form.
My plan was to create a new button group called "Insurance Fields" and add the two buttons there for year and model. When they click on the button, it'd create a select type with everything pre-populated so they don't have to touch anything else.
So far I've got the new button groups setup but I'm having problems creating the fields.
Do you have an example/demo that explain how to use the hooks to get the result that I'm looking for?
Thanks!