Skip to content

Radio types in actions do not seem to be working  #10

@jdmc562

Description

@jdmc562

when using the client with siren4j (currently I am using 1.1.3) radio options are not generated.

the code returned (see below) returns options, the jade template seems to get it from the value,
should it not get the option repeat from the field.options instead ?

-- action-form.jave snippet ---
form(ng-submit='actionFromCtrl.submit(action); $parent.$close()')
div(ng-repeat="field in action.fields")
div.form-group(ng-if="field.type == 'checkbox' || field.type == 'radio'")
label {{field.title}}
div.checkbox.radio(ng-repeat="option in field.value")
label

---- example return snippet
{
"name": "language",
"title": "The language he or she wants to be addressed in",
"type": "radio",
"required": true,
"options": [
{
"title": "English",
"value": "EN",
"default": false
},
{
"title": "Français",
"value": "FR",
"default": false
}
]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions