Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: Default string text randomly not working with fieldGroup #547

Closed
apowell656 opened this issue Mar 22, 2023 · 3 comments
Closed

Issue: Default string text randomly not working with fieldGroup #547

apowell656 opened this issue Mar 22, 2023 · 3 comments
Labels

Comments

@apowell656
Copy link

Describe the bug
Default string not showing up randomly. In the example below the fieldGroup will populate, but the template will not. When I remove the hidden option the text does not appear in the front matter either.

Expected behavior
Fields with default text to populate the front matter.

    {
      "id": "two-columns-image-text",
      "labelField": "template",
      "fields": [
        {
          "title": "Template",
          "name": "template",
          "type": "string",
          "default": "two-columns-image-text",
          "hidden": true
        },
        {
          "title": "Heading",
          "name": "heading",
          "type": "string"
        },
        {
          "title": "Image",
          "name": "image",
          "type": "image"
        },
        {
          "title": "Text/Content",
          "name": "content",
          "type": "string"
        },

        {
          "title": "fieldGroup",
          "name": "fieldGroup",
          "type": "string",
          "default": "two-columns-image-text",
          "hidden": true
        }
      ]
    },

Desktop (please complete the following information):

  • OS: macOS Ventura 13.2.1
  • Visual Studio Code:
    Version: 1.76.2
    Commit: ee2b180d582a7f601fa6ecfdad8d9fd269ab1884
    Date: 2023-03-14T17:53:46.528Z
    Electron: 19.1.11
    Chromium: 102.0.5005.196
    Node.js: 16.14.2
    V8: 10.2.154.26-electron.0
    OS: Darwin arm64 22.3.0
    Sandboxed: No
  • Front Matter (Beta) v8.4.4477137
@apowell656 apowell656 added the bug Something isn't working label Mar 22, 2023
@estruyf
Copy link
Owner

estruyf commented Mar 22, 2023

Thanks @apowell656, I will take a look a why this is happening.

@estruyf
Copy link
Owner

estruyf commented Mar 22, 2023

Found the issue and it should now have been solved

image

@apowell656
Copy link
Author

Fantastic! Thank you so much! It works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants