Editor select options

Editor select options

capeckcapeck Posts: 54Questions: 13Answers: 1
edited February 2015 in Free community support

I am trying to get my editor select options to load and I feel like I'm missing something very obvious.
THe options are being loaded properly in the JSON - I can see them in the response. But when opening an edit form the select fields are blank. The names all look correct so I can' figure out where hte missing link is.
These are th eoptions returned in the JSON, so it looks like the options are getting read properly:

    "options": {
        "member_limits.segment": [{
            "value": 1,
            "label": "Moose to Wilson"
        }, {
            "value": 3,
            "label": "South Park to Hoback"
        }, {
            "value": 2,
            "label": "Wilson to South Park"
        }],
        "member_limits.trip_type": [{
            "value": 1,
            "label": "Fishing"
        }, {
            "value": 2,
            "label": "Scenic"
        }, {
            "value": 3,
            "label": "Small Craft"
        }]
    }
}

And then my editor field options:

    "fields": [
      {"label":"RiverSegment","name":"member_limits.segment","type":"select"},
      {"label":"TripType","name":"member_limits.trip_type","type":"select"},
      {"label":"Pre-seasonAllocation","name":"member_limits.allocation","default":"-1","type":"text"},
      {"label":"Pool Allocation","name":"member_limits.pool","default":"-1","type":"text"}
    ]

Sorry for the length, but can't link to a live site yet.
My datatable loads properly, it's just the editor fields that I can't figure out.

Answers

  • allanallan Posts: 63,686Questions: 1Answers: 10,500 Site admin

    Are you using Editor 1.4? The options JSON interaction was added in 1.4 (currently in beta, about to be released!).

    Allan

This discussion has been closed.