Yeah, its being inputted into a structure field that is pulling the categories from another structure field. This is the full code atm:
socialPlatforms:
label: Social Media Platforms
type: structure
help: This defines the categories you can use for the social media information below
fields:
socialPlatform:
label: Platform Name
type: text
socialMedia:
label: Contact & Social Media Information
type: structure
max: 5
help: Add your social media information here!
fields:
platform:
label: Platform
type: select
required: yes
options: query
query:
fetch: site.socialPlatforms.toStructure
text: "{{ structureItem.socialPlatform }}"
value: "{{ structureItem.socialPlatform.slug }}"
help: The options for this category are selected from the **Social Media Platforms** table above.
emailToggle:
label: Is this an E-mail?
type: toggle
default: no
text:
- "No"
- "Yes"
width: 1/2
link:
label: Link
type: url
required: yes
width: 1/2
when:
emailToggle: no
emailLink:
label: Email Link
type: email
required: yes
before: 'mailto:'
width: 1/2
when:
emailToggle: yes
displayText:
label: Display Text
type: text
width: 1
help: Fill this out if you want the text shown on the website to be different than the link.