Can an editor field of type "Checkbox" have a string value?

Can an editor field of type "Checkbox" have a string value?

salpautisalpauti Posts: 7Questions: 5Answers: 0

I'm receiving an error when submitting the following field in editor. Is my approach of assigning a string value to a checkbox incorrect?

"label": "user_type",
"name": "accounts.user_type",
type: "checkbox",
options: [
{
label: "Admin",
value: "admin",
}
],

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,734Questions: 1Answers: 10,110 Site admin
    Answer ✓

    Is my approach of assigning a string value to a checkbox incorrect?

    That's perfectly valid. What is the error you are getting?

    Allan

  • salpautisalpauti Posts: 7Questions: 5Answers: 0

    User error Allan. It's resolved. Thank you for your prompt response.

This discussion has been closed.