NULL on Editor Radio Button OPtion

NULL on Editor Radio Button OPtion

greggreggreggreggreggreg Posts: 42Questions: 19Answers: 2

I cant do this:

                                                "label": "Status:",
                                                "name": "status",
                                                    type:  "radio",
                                                    "options": [
                                                        { label: "Yes", value: 1 },
                                                        { label: "NO!", value: 0 },
                                                        { label: "Not Applicable", value: null }
                                                    ]

Should it be possible? The NA option keeps telling me the integer value is no allowed. (DB field set to Tiny Int, with NULL allowed.)

thanks

Answers

  • rf1234rf1234 Posts: 2,943Questions: 87Answers: 416

    Just return blank from the front end and use a setFormatter on the server to return null if blank.

This discussion has been closed.