
Anonymous Community User asked a question.
Adding a New Option to a Category Field
Hello, I'm attempting to write code to add a new option to a Category field within an app.e.g: A field has options 1, 2, 3, 4, I'd like to add a new option "5".Below is my code (PHP) thus far, but it only succeeds in removing ALL the options for the category field!Could someone point out what I'm doing wrong here?------$fieldAttributes = array ( 'label' => 'Status', 'type' => 'Category', 'config' => [ 'description' => 'Hi', 'label' => 'Category', 'required' => false, 'settings' => [ 'multiple' => false, 'options' => [ [ 'status' => 'active', 'text' => 'WHY', 'color' => 'D1F3EC', ], ] ] ]);PodioAppField::update($appID, $fieldID, $fieldAttributes);