imPagePopulate 1.0 - Sub Map Option
The following example shows how to use the imPagePopulate plugin using the 'sub_map' option. Sub Maps are used for repeating fields such as multiple checkboxes. I am using the imCheckboxDB Plugin to create the list of checkboxes. I then use the sub_map option to "check" the applicable checkboxes. The data returned must be a Json object. In this case, the data returned is as follows:
'[{"first_name": "Jack", "last_name": "O\'neal", "address1": "227 Cheyenne Mountain", "address2": "Suite SG1", "city": "Colorado Springs", "states": "4",
"zip_code": "80914", "home_phone": "719-561-2222", "email": "soneal@stargatecommand.gov", "hobby1": "Fishing", "hobby2": "Exploring New Worlds",
music_pref: [{ "music_cat_id":"1", "music_desc":"80s Music" }, { "music_cat_id":"10", "music_desc":"Rock" }, {"music_cat_id":"14", "music_desc":"R&B" },
'{ "music_cat_id":"15", "music_desc":"Dance/Electronic" }]}]'
View the source code for this page to view how to use the plugin. For documentation about the imValidateForm plugin, view the blog post.

