I have a registration form with 50+ input fields. What is the best way to get form filed information to pass it to iPhone or Android developers to make a form in the mobile app?
Currently i am doing something like inspect the form with firebug and copy/paste the form to make this work.
Recently i have written some code to get the form field information.
This is the idea.
- In the
- Get the keys in
$form['#after_build']and get the basic information.
- Render the information to a
itemand add it to form so that i can copy/paste
But its not perfect; when the form fields like add custom modules for Registration like Logintoboggan etc i am not getting expected results.
What is your way to do it?
This is the result i expect in case of a select field
Array ( [Title] => Marital Status [Field Name] => field_marital_status[und] [Type] => select [Options] => Array (  => Status  => -Divorced  => -Married  => -Never married before  => -Separated  => -Widowed ) )