diff --git a/lib/API/JSON/v1/Forms.php b/lib/API/JSON/v1/Forms.php index 122c9573c3..7aeee325af 100644 --- a/lib/API/JSON/v1/Forms.php +++ b/lib/API/JSON/v1/Forms.php @@ -116,6 +116,10 @@ class Forms extends APIEndpoint { ], ]; + if ($this->features_controller->isSupported(FeaturesController::NEW_FORM_EDITOR)) { + $form_data['body'][0]['params']['label_within'] = true; + } + return $this->save($form_data); }