pods-framework / pods-gravity-forms

Integration with Gravity Forms plugin for WordPress (https://pods.io/gravityforms/)
https://wordpress.org/plugins/pods-gravity-forms/
GNU General Public License v2.0
62 stars 10 forks source link

Form field data not passing to Pods relationship field #122

Closed Dianei closed 5 years ago

Dianei commented 5 years ago

Issue Overview

Data entered into field form, mapped to a Pod relationship field does not appear after submission of the form.

Expected Behavior

Data entered in field form should auto populate/or auto select from the Pod within the relationship field to which it is mapped.

Current Behavior

Data entered in the field form mapped to pods relationship fields are prompting for a search/selection.

Possible Solution

Perhaps the form field could have a dynamic drop-down containing the current entries within the Pod?

Steps to Reproduce (for bugs)

Link to form: http://adoptaregiment.org/service-members/add-service-details2/ (I will need to add you as a registered user.)

  1. Form created with the following fields (non are required) & mapping in Pods feed to Enlistment Pod field => Form field enlistment_date => enlistment_date enlistment_city => enlistment_city enlistment_state => enlistment_state related_regiment => enlistment_regiment related_service_member => Name (Full) rank_at_enlistment => rank_at_enlistment

  2. Form entries

    Name: Jacob Mann Brown Enlisted: 24/4/1775 Enlistment Place: Maine Rank at Enlistment: Major Enlistment Regiment: 26th Regiment, Provincial Army

SUBMIT

  1. Data from 'Enlisted, Enlistment Place, & Rank at Enlistment' appear in Pod. Name & Enlistment Regiment pod fields are not populated.

Form Upload

``` {"0":{"title":"Add Service for existing service member","description":"","labelPlacement":"top_label","descriptionPlacement":"below","button":{"type":"text","text":"Submit","imageUrl":""},"fields":[{"type":"name","id":1,"label":"Name","adminLabel":"","isRequired":false,"size":"medium","errorMessage":"","visibility":"visible","nameFormat":"advanced","inputs":[{"id":"1.2","label":"Prefix","name":"","choices":[{"text":"Mr.","value":"Mr.","isSelected":false,"price":""},{"text":"Mrs.","value":"Mrs.","isSelected":false,"price":""},{"text":"Miss","value":"Miss","isSelected":false,"price":""},{"text":"Ms.","value":"Ms.","isSelected":false,"price":""},{"text":"Dr.","value":"Dr.","isSelected":false,"price":""},{"text":"Prof.","value":"Prof.","isSelected":false,"price":""},{"text":"Rev.","value":"Rev.","isSelected":false,"price":""}],"isHidden":true,"inputType":"radio"},{"id":"1.3","label":"First","name":"first_name"},{"id":"1.4","label":"Middle","name":"middle_name","isHidden":false},{"id":"1.6","label":"Last","name":"last_name"},{"id":"1.8","label":"Suffix","name":"suffix","isHidden":false}],"formId":20,"description":"","allowsPrepopulate":true,"inputMask":false,"inputMaskValue":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":"","productField":"","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"displayOnly":""},{"type":"date","id":4,"label":"Enlisted","adminLabel":"enlistment_date","isRequired":false,"size":"medium","errorMessage":"","visibility":"visible","inputs":null,"dateType":"datefield","calendarIconType":"none","formId":20,"description":"","allowsPrepopulate":true,"inputMask":false,"inputMaskValue":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"gf_left_half","inputName":"enlistment_date","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":"","calendarIconUrl":"","dateFormat":"dmy","productField":"","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"displayOnly":""},{"type":"address","id":5,"label":"Enlistment Place","adminLabel":"enlistment_place","isRequired":false,"size":"medium","errorMessage":"","visibility":"visible","addressType":"us","inputs":[{"id":"5.1","label":"Street Address","name":"","isHidden":true},{"id":"5.2","label":"Address Line 2","name":"","isHidden":true},{"id":"5.3","label":"City","name":"enlistment_city"},{"id":"5.4","label":"State \/ Province","name":"enlistment_state"},{"id":"5.5","label":"ZIP \/ Postal Code","name":"","isHidden":true},{"id":"5.6","label":"Country","name":"","isHidden":true}],"formId":20,"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"gf_right_half","inputName":"","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":"","defaultCountry":"United States","defaultProvince":"","productField":"","defaultState":"","enableCopyValuesOption":"","copyValuesOptionDefault":"","copyValuesOptionLabel":"","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"displayOnly":""},{"type":"select","id":18,"label":"Rank at Enlistment","adminLabel":"rank_at_enlistment","isRequired":false,"size":"medium","errorMessage":"","visibility":"visible","inputs":null,"choices":[{"text":"Private","value":"Private","isSelected":false,"price":""},{"text":"Sergeant","value":"Sergeant","isSelected":false,"price":""},{"text":"Lieutenant","value":"Lieutenant","isSelected":false,"price":""},{"text":"Captain","value":"Captain","isSelected":false,"price":""},{"text":"Major","value":"Major","isSelected":false,"price":""},{"text":"Lieutenant Colonel","value":"Lieutenant Colonel","isSelected":false,"price":""},{"text":"Colonel","value":"Colonel","isSelected":false,"price":""},{"text":"Brigadier General","value":"Brigadier General","isSelected":false,"price":""},{"text":"Major General","value":"Major General","isSelected":false,"price":""},{"text":"Lieutenant General","value":"Lieutenant General","isSelected":false,"price":""},{"text":"General","value":"General","isSelected":false,"price":""},{"text":"Patriotic Supporter","value":"Patriotic Supporter","isSelected":false,"price":""},{"text":"Musician","value":"Musician","isSelected":false,"price":""},{"text":"Medical","value":"Medical","isSelected":false,"price":""},{"text":"Other","value":"Other","isSelected":false,"price":""}],"formId":20,"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"gf_right_half","inputName":"rank_at_enlistment","noDuplicates":false,"defaultValue":"","conditionalLogic":"","productField":"","enablePrice":"","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"enableChoiceValue":false,"displayOnly":"","pods_populate_related_items":true,"enableEnhancedUI":0},{"type":"text","id":24,"label":"Enlistment Regiment","adminLabel":"enlistment_regiment","isRequired":false,"size":"medium","errorMessage":"","visibility":"visible","inputs":null,"formId":20,"description":"","allowsPrepopulate":true,"inputMask":false,"inputMaskValue":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"gf_right_half","inputName":"enlistment_regiment","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":"","productField":"","enablePasswordInput":"","maxLength":"","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"displayOnly":""},{"type":"date","id":10,"label":"Discharged","adminLabel":"Discharged","isRequired":false,"size":"medium","errorMessage":"","visibility":"visible","inputs":null,"dateType":"datefield","calendarIconType":"none","formId":20,"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"gf_left_half","inputName":"Discharged","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":"","calendarIconUrl":"","dateFormat":"dmy","productField":"","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"displayOnly":""},{"type":"address","id":11,"label":"Place of Discharge","adminLabel":"place_of_discharge","isRequired":false,"size":"medium","errorMessage":"","visibility":"visible","addressType":"us","inputs":[{"id":"11.1","label":"Street Address","name":"","isHidden":true},{"id":"11.2","label":"Address Line 2","name":"","isHidden":true},{"id":"11.3","label":"City","name":"discharge_city","defaultValue":""},{"id":"11.4","label":"State \/ Province","name":"discharge_state","defaultValue":""},{"id":"11.5","label":"ZIP \/ Postal Code","name":"","isHidden":true},{"id":"11.6","label":"Country","name":"","isHidden":true}],"formId":20,"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"gf_right_half","inputName":"","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":{"actionType":"show","logicType":"all","rules":[{"fieldId":"10","operator":"isnot","value":""}]},"defaultCountry":"United States","defaultProvince":"","productField":"","defaultState":"","enableCopyValuesOption":"","copyValuesOptionDefault":"","copyValuesOptionLabel":"","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"displayOnly":""},{"type":"select","id":70,"label":"Discharge Reason","adminLabel":"discharge_reason","isRequired":false,"size":"medium","errorMessage":"","visibility":"visible","inputs":null,"choices":[{"text":"End of Term or Action","value":"End of Term or Action","isSelected":false,"price":""},{"text":"Transfer","value":"Transfer","isSelected":false,"price":""},{"text":"Injury or Illness","value":"Injury or Illness","isSelected":false,"price":""},{"text":"Furlough","value":"Furlough","isSelected":false,"price":""},{"text":"Deserted","value":"Deserted","isSelected":false,"price":""},{"text":"Death","value":"Death","isSelected":false,"price":""},{"text":"Unknown","value":"Unknown","isSelected":false,"price":""}],"formId":20,"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"gf_left_half","inputName":"discharge_reason","noDuplicates":false,"defaultValue":"","conditionalLogic":{"actionType":"show","logicType":"all","rules":[{"fieldId":"10","operator":"isnot","value":""}]},"productField":"","enablePrice":"","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"pods_populate_related_items":true,"displayOnly":"","enableEnhancedUI":0},{"type":"select","id":19,"label":"Rank at Discharge","adminLabel":"rank_at_discharge","isRequired":false,"size":"medium","errorMessage":"","visibility":"visible","inputs":null,"choices":[{"text":"Private","value":"Private","isSelected":false,"price":""},{"text":"Sergeant","value":"Sergeant","isSelected":false,"price":""},{"text":"Lieutenant","value":"Lieutenant","isSelected":false,"price":""},{"text":"Captain","value":"Captain","isSelected":false,"price":""},{"text":"Major","value":"Major","isSelected":false,"price":""},{"text":"Lieutenant Colonel","value":"Lieutenant Colonel","isSelected":false,"price":""},{"text":"Colonel","value":"Colonel","isSelected":false,"price":""},{"text":"Brigadier General","value":"Brigadier General","isSelected":false,"price":""},{"text":"Major General","value":"Major General","isSelected":false,"price":""},{"text":"Lieutenant General","value":"Lieutenant General","isSelected":false,"price":""},{"text":"General","value":"General","isSelected":false,"price":""},{"text":"Patriotic Supporter","value":"Patriotic Supporter","isSelected":false,"price":""},{"text":"Musician","value":"Musician","isSelected":false,"price":""},{"text":"Medical","value":"Medical","isSelected":false,"price":""},{"text":"Other","value":"Other","isSelected":false,"price":""}],"formId":20,"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"gf_right_half","inputName":"rank_at_discharge","noDuplicates":false,"defaultValue":"","conditionalLogic":{"actionType":"show","logicType":"all","rules":[{"fieldId":"10","operator":"isnot","value":""}]},"productField":"","enablePrice":"","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"enableChoiceValue":false,"displayOnly":"","pods_populate_related_items":true,"enableEnhancedUI":0},{"type":"post_title","id":71,"label":"Post Title","adminLabel":"post_title","isRequired":false,"size":"medium","errorMessage":"","visibility":"administrative","inputs":null,"formId":20,"description":"","allowsPrepopulate":false,"inputMask":false,"inputMaskValue":"","inputType":"","labelPlacement":"","descriptionPlacement":"","subLabelPlacement":"","placeholder":"","cssClass":"","inputName":"","noDuplicates":false,"defaultValue":"","choices":"","conditionalLogic":"","productField":"","multipleFiles":false,"maxFiles":"","calculationFormula":"","calculationRounding":"","enableCalculation":"","disableQuantity":false,"displayAllCategories":false,"useRichTextEditor":false,"displayOnly":""}],"version":"2.3.4","id":20,"useCurrentUserAsAuthor":true,"postContentTemplateEnabled":false,"postTitleTemplateEnabled":true,"postTitleTemplate":"{enlistment_date:4} {Name (First):1.3} {Name (Last):1.6}","postContentTemplate":"","lastPageButton":null,"pagination":null,"firstPageCssClass":null,"subLabelPlacement":"below","cssClass":"","enableHoneypot":true,"enableAnimation":false,"save":{"enabled":false,"button":{"type":"link","text":"Save and Continue Later"}},"limitEntries":false,"limitEntriesCount":"","limitEntriesPeriod":"","limitEntriesMessage":"","scheduleForm":false,"scheduleStart":"","scheduleStartHour":"","scheduleStartMinute":"","scheduleStartAmpm":"","scheduleEnd":"","scheduleEndHour":"","scheduleEndMinute":"","scheduleEndAmpm":"","schedulePendingMessage":"","scheduleMessage":"","requireLogin":false,"requireLoginMessage":"","postAuthor":"1","postCategory":"1","postFormat":"0","postStatus":"draft","is_active":"1","date_created":"2018-07-30 16:43:29","is_trash":"0","confirmations":[{"id":"5b5f4031cfd09","name":"Default Confirmation","isDefault":true,"type":"message","message":"Thanks for submitting details for the service member. We will review the submission and let you know when it is published!","url":"","pageId":0,"queryString":"","disableAutoformat":false,"conditionalLogic":[]}],"notifications":[{"id":"5b5f4031ce8dd","to":"{admin_email}","name":"Admin Notification","event":"form_submission","toType":"email","subject":"New submission from {form_title}","message":"{all_fields}"}]},"version":"2.3.4"} ```

Pods Package Export

``` {"meta":{"version":"2.7.9","build":1538432105},"pods":{"1316":{"id":1316,"name":"enlistment","label":"Enlistments","description":"","type":"post_type","storage":"meta","object":"","alias":"","fields":{"enlistment_date":{"id":1317,"name":"enlistment_date","label":"enlistment date","description":"","help":"","class":"","type":"date","weight":0,"pick_object":"","pick_val":"","sister_id":"","required":"0","date_type":"format","date_format":"dMy_dash","date_allow_empty":"1","date_html5":"0","oembed_enabled_providers_adoptaregimentorg":"0","pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","date_repeatable":"0","date_format_custom":"","date_format_custom_js":""},"enlistment_city":{"id":1318,"name":"enlistment_city","label":"enlistment city","description":"","help":"","class":"","type":"text","weight":1,"pick_object":"","pick_val":"","sister_id":"","required":"0","text_allow_shortcode":"0","text_allow_html":"0","text_allowed_html_tags":"strong em a ul ol li b i","text_max_length":"255","oembed_enabled_providers_adoptaregimentorg":"0","pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","text_repeatable":"0","text_placeholder":""},"enlistment_state":{"id":1319,"name":"enlistment_state","label":"enlistment state","description":"","help":"","class":"","type":"pick","weight":2,"pick_object":"us_state","pick_val":"","sister_id":"","required":"0","oembed_enabled_providers_adoptaregimentorg":"0","pick_format_type":"single","pick_format_single":"dropdown","pick_format_multi":"checkbox","pick_allow_add_new":"1","pick_taggable":"0","pick_show_icon":"1","pick_show_edit_link":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""},"related_regiment":{"id":1320,"name":"related_regiment","label":"related regiment","description":"","help":"","class":"","type":"pick","weight":3,"pick_object":"post_type","pick_val":"regiment","sister_id":"1356","required":"0","oembed_enabled_providers_adoptaregimentorg":"0","pick_format_type":"single","pick_format_single":"autocomplete","pick_format_multi":"list","pick_allow_add_new":"1","pick_taggable":"0","pick_show_icon":"0","pick_show_edit_link":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"pick_post_status":["publish","draft","pending"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","pick_display":"{@post_title}","pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_where":"","pick_orderby":"","pick_groupby":""},"related_service_member":{"id":1321,"name":"related_service_member","label":"related service member","description":"","help":"","class":"","type":"pick","weight":4,"pick_object":"post_type","pick_val":"service_member","sister_id":"1355","required":"0","oembed_enabled_providers_adoptaregimentorg":"0","pick_format_type":"single","pick_format_single":"autocomplete","pick_format_multi":"multiselect","pick_allow_add_new":"1","pick_taggable":"0","pick_show_icon":"1","pick_show_edit_link":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"pick_post_status":["publish","draft","pending"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""},"rank_at_enlistment":{"id":1326,"name":"rank_at_enlistment","label":"rank at enlistment","description":"","help":"","class":"","type":"pick","weight":5,"pick_object":"custom-simple","pick_val":"","sister_id":"","required":"0","oembed_enabled_providers_adoptaregimentorg":"0","pick_format_type":"single","pick_format_single":"dropdown","pick_format_multi":"checkbox","pick_allow_add_new":"1","pick_taggable":"0","pick_show_icon":"1","pick_show_edit_link":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","pick_custom":"Private\nSergeant\nLieutenant\nCaptain\nMajor\nLieutenant Colonel\nColonel\nBrigadier General\nMajor General\nLieutenant General\nGeneral\nPatriotic Supporter\nMedical\nMusician\nOther\nSentinel","pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""},"discharge_date":{"id":1322,"name":"discharge_date","label":"discharge date","description":"","help":"","class":"","type":"date","weight":6,"pick_object":"","pick_val":"","sister_id":"","required":"0","date_type":"format","date_format":"dMy_dash","date_allow_empty":"1","date_html5":"0","oembed_enabled_providers_adoptaregimentorg":"0","pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","date_repeatable":"0","date_format_custom":"","date_format_custom_js":""},"discharge_city":{"id":1323,"name":"discharge_city","label":"discharge city","description":"","help":"","class":"","type":"text","weight":7,"pick_object":"","pick_val":"","sister_id":"","required":"0","text_allow_shortcode":"0","text_allow_html":"0","text_allowed_html_tags":"strong em a ul ol li b i","text_max_length":"255","oembed_enabled_providers_adoptaregimentorg":"0","pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","text_repeatable":"0","text_placeholder":""},"discharge_state":{"id":1324,"name":"discharge_state","label":"discharge state","description":"","help":"","class":"","type":"pick","weight":8,"pick_object":"us_state","pick_val":"","sister_id":"","required":"0","oembed_enabled_providers_adoptaregimentorg":"0","pick_format_type":"single","pick_format_single":"dropdown","pick_format_multi":"checkbox","pick_allow_add_new":"1","pick_taggable":"0","pick_show_icon":"1","pick_show_edit_link":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""},"rank_at_discharge":{"id":1327,"name":"rank_at_discharge","label":"rank at discharge","description":"","help":"","class":"","type":"pick","weight":9,"pick_object":"custom-simple","pick_val":"","sister_id":"","required":"0","oembed_enabled_providers_adoptaregimentorg":"0","pick_format_type":"single","pick_format_single":"dropdown","pick_format_multi":"checkbox","pick_allow_add_new":"1","pick_taggable":"0","pick_show_icon":"1","pick_show_edit_link":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","pick_custom":"Private\nSergeant\nLieutenant\nCaptain\nMajor\nLieutenant Colonel\nColonel\nBrigadier General\nMajor General\nLieutenant General\nGeneral\nPatriotic Supporter\nMedical\nMusician\nOther\nSentinel","pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""},"discharge_reason":{"id":1325,"name":"discharge_reason","label":"discharge reason","description":"","help":"","class":"","type":"pick","weight":10,"pick_object":"custom-simple","pick_val":"","sister_id":"","pick_custom":"end of term or action\ntransfer\nInjury or Illness\nFurlough\ndeserted\ndeath\nunknown","required":"0","oembed_enabled_providers_adoptaregimentorg":"0","pick_format_type":"single","pick_format_single":"dropdown","pick_format_multi":"checkbox","pick_allow_add_new":"1","pick_taggable":"0","pick_show_icon":"1","pick_show_edit_link":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""},"related_engagements":{"id":1421,"name":"related_engagements","label":"related engagements","description":"","help":"","class":"","type":"pick","weight":11,"pick_object":"post_type","pick_val":"military_action","sister_id":"1424","required":"0","oembed_enabled_providers_adoptaregimentorg":"0","pick_format_type":"multi","pick_format_single":"dropdown","pick_format_multi":"list","pick_allow_add_new":"1","pick_taggable":"0","pick_show_icon":"1","pick_show_edit_link":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""},"related_forts":{"id":1422,"name":"related_forts","label":"related forts","description":"","help":"","class":"","type":"pick","weight":12,"pick_object":"post_type","pick_val":"military_fort","sister_id":"1435","required":"0","oembed_enabled_providers_adoptaregimentorg":"0","pick_format_type":"multi","pick_format_single":"dropdown","pick_format_multi":"list","pick_allow_add_new":"1","pick_taggable":"0","pick_show_icon":"1","pick_show_edit_link":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""},"related_encampments":{"id":1423,"name":"related_encampments","label":"related encampments","description":"","help":"","class":"","type":"pick","weight":13,"pick_object":"post_type","pick_val":"military_encampment","sister_id":"1436","required":"0","oembed_enabled_providers_adoptaregimentorg":"0","pick_format_type":"multi","pick_format_single":"dropdown","pick_format_multi":"list","pick_allow_add_new":"1","pick_taggable":"0","pick_show_icon":"1","pick_show_edit_link":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""},"related_source":{"id":1494,"name":"related_source","label":"related source","description":"","help":"","class":"","type":"pick","weight":14,"pick_object":"post_type","pick_val":"source","sister_id":"1485","required":"0","oembed_enabled_providers_adoptaregimentorg":"0","pick_format_type":"multi","pick_format_single":"dropdown","pick_format_multi":"list","pick_allow_add_new":"1","pick_taggable":"0","pick_show_icon":"1","pick_show_edit_link":"1","pick_show_view_link":"1","pick_limit":"0","pick_user_role":[],"pick_post_status":["publish"],"admin_only":"0","restrict_role":"0","restrict_capability":"0","hidden":"0","read_only":"0","roles_allowed":["administrator"],"rest_read":"0","rest_write":"0","rest_pick_response":"array","rest_pick_depth":"2","unique":"0","pick_select_text":"","pick_table_id":"","pick_table_index":"","pick_display":"","pick_where":"","pick_orderby":"","pick_groupby":""}},"show_in_menu":"1","label_singular":"Enlistment","public":"1","show_ui":"1","supports_title":"1","supports_editor":"0","publicly_queryable":"1","exclude_from_search":"0","capability_type":"page","capability_type_custom":"enlistment","capability_type_extra":"1","has_archive":"0","hierarchical":"0","rewrite":"1","rewrite_with_front":"1","rewrite_feeds":"0","rewrite_pages":"1","query_var":"1","can_export":"1","default_status":"draft","supports_author":"1","supports_thumbnail":"1","supports_excerpt":"0","supports_trackbacks":"0","supports_custom_fields":"0","supports_comments":"0","supports_revisions":"0","supports_page_attributes":"0","supports_post_formats":"0","supports_jetpack_publicize":"0","supports_jetpack_markdown":"0","built_in_taxonomies_bp-email-type":"0","built_in_taxonomies_bp_group_type":"0","built_in_taxonomies_bp_member_type":"0","built_in_taxonomies_category":"0","built_in_taxonomies_link_category":"0","built_in_taxonomies_post_tag":"0","built_in_taxonomies_topic-tag":"0","show_in_nav_menus":"1","show_in_admin_bar":"1","pfat_enable":"1","pfat_run_outside_loop":"0","pfat_single":"Enlistment Page template","pfat_append_single":"append","pfat_filter_single":"the_content","pfat_append_archive":"append","pfat_filter_archive":"the_content","rest_enable":"0","read_all":"0","write_all":"0","menu_position":"14","menu_icon":"dashicons-clipboard"}},"templates":{"Military Encampments Template":{"id":1282,"name":"Military Encampments Template","code":"
\r\n\t\r\n\t

Profile<\/h2>\r\n\t\r\n\t\t