[Fred] Only the 1st setting in the options for an Element will update/save

I’m making a card-based portfolio and it has the following markup:

<div data-fred-name="portfolio-item" class="col-sm-6 col-md-4 col-lg-4 {{ category_class }}" data-aos="">
              <div class="item d-flex mx-auto">
                  <div class="hover-bg">
                      <div class="hover-text">
                          <h4 >{{ company }}</h4>
                          <small>{{ company_category }}</small>
                      </div>
                  </div>
                  <img  data-fred-image-media-source="Assets" src="{{ image_source }}" class="w-100 mx-auto my-auto">
              </div>
          </div>

with the following settings:

{
    "settings": [
      {
        "name": "category_class",
        "label": "Category Label",
        "type": "select",
        "options": {
          "branding": "Branding",
          "personal-branding": "Personal Branding",
          "assets": "Assets",
          "websites": "Websites"
        },
      },
      {
        "name": "company",
        "label": "Company Name",
        "type": "text"
      },
      {
        "name": "company_category",
        "label": "Type of Work",
        "type": "text"
      },
      {
        "name": "image_source",
        "label": "Portfolio Image",
        "type": "image",
        "mediaSource": "Assets"
     
      }
    ]
  }

I can see the default values I set for each setting, but when I go to make the edits on the element in the Fred editor, only the 1st option will update and change, and the rest will keep the default values I placed in them when creating the settings. What am I missing to cause this issue? Thanks!

I think there should be no data-fred-name attribute in the wrapper div (but I could be wrong).

<div data-fred-name="portfolio-item" ... >

There is a “Portfolio Block” in the extra Fred Creative One Page Theme. Maybe take a look how it is done there.

1 Like

Wow…I spent way too much time trying everything else but removing the data-fred-name and that was the issue. Thank you!

This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.