Answers.Body: <p>I don't fully understand it. But since modules can quite freely design their fields in the CP, this should be possible with a custom field type. </p>
  
  <p>It sounds to me like a variation of the select field.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-11T14:48:13.087Z
Answers.Text: thanks for your response. i've edited my question with more details
Answers.UserDisplayName: Cat Named Dog
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-11T17:24:43.220Z
Answers.Text: Luke is correct. There is no existing plugin that does this (that I'm aware of). But you can build this yourself using a custom field type.
Answers.UserDisplayName: Lindsey D
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-06-11T14:42:21.970Z
Answers.LastActivityDate: 2019-06-12T04:51:19.773Z
Answers.LastEditDate: 2019-06-12T04:51:19.773Z
Answers.UserDisplayName: Luke
Body: <p>We need a field that holds assigned postal codes. Each Location entry will have this field and I'd like to have the following:</p>
  
  <ul>
  <li>Buttons to assign postals by city, state, county (data grabbed from table I have)</li>
  <li>on button click, the postal codes will be added to the actual field</li>
  </ul>
  
  <p>I'm not sure if this is possible with a field or if I have to do this on a separate CP page</p>
  
  <p>EDIT: I'll be more descriptive</p>
  
  <p>We would have 4 buttons and 4 selects. The first select (State) will auto choose the state that the Location entry has on another field.</p>
  
  <p>The 3 other fields (city, state, zips) will populate based on the proceeding choices.</p>
  
  <p>So if the state is PA, the other 3 selects will populate only counties, cities, and zips located in that state.</p>
  
  <p>There are buttons underneath each to assign either all zips in a state, county, city, or a single zip.</p>
  
  <p>When they press add, I'd like to add to a table with the columns</p>
  
  <p>State, County, City, Zip</p>
  
  <p>I'd also like to have an option to add/remove assigned zips simply from a CSV in a textarea.</p>
  
  <p>it sounds quite complicated, but I've done this exact thing on other apps...just not inside craft.</p>
  
Tags: <field><modules>
Title: Is it possible to create this type of custom field?
ThreadText: # Is it possible to create this type of custom field?
  
  (Asked by: username_0 on 2019-06-11)
  
  We need a field that holds assigned postal codes. Each Location entry will have this field and I'd like to have the following:
  
  * Buttons to assign postals by city, state, county (data grabbed from table I have)
  * on button click, the postal codes will be added to the actual field
  
  I'm not sure if this is possible with a field or if I have to do this on a separate CP page
  
  EDIT: I'll be more descriptive
  
  We would have 4 buttons and 4 selects. The first select (State) will auto choose the state that the Location entry has on another field.
  
  The 3 other fields (city, state, zips) will populate based on the proceeding choices.
  
  So if the state is PA, the other 3 selects will populate only counties, cities, and zips located in that state.
  
  There are buttons underneath each to assign either all zips in a state, county, city, or a single zip.
  
  When they press add, I'd like to add to a table with the columns
  
  State, County, City, Zip
  
  I'd also like to have an option to add/remove assigned zips simply from a CSV in a textarea.
  
  it sounds quite complicated, but I've done this exact thing on other apps...just not inside craft.
  
  **Tags:** field, modules
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-06-11. Score: 2
  
  I don't fully understand it. But since modules can quite freely design their fields in the CP, this should be possible with a custom field type.
  
  It sounds to me like a variation of the select field.
  
  > **Comments:**
  > **username_0**: thanks for your response. i've edited my question with more details  
  > **username_2**: username_1 is correct. There is no existing plugin that does this (that I'm aware of). But you can build this yourself using a custom field type.  
  
  ---
  
  