Iām having a bit of trouble creating a field on a model which is using the conditional fields plugin using the javascript SDK.
Iām posting the following JSON:
{ālabelā:āHideā,āfieldTypeā:ābooleanā,ādefaultValueā:false,ālocalizedā:false,āapiKeyā:āhideā,āhintā:āShow options about hiding the fieldā,āvalidatorsā:{},āappeareanceā:{āeditorā:ābooleanā,āparametersā:{},āaddonsā:[{āidā:ā5946ā,āparametersā:{āslaveFieldsā:āhide_from,hide_untilā}}]},āpositionā:11}
But I receive the following error, this seems odd as I can create every other field / model via the API successfully.
message:ā422 INVALID_FIELD (details: {āfieldā:āappeareance.addons.0.parameters.slave_fieldsā,ācodeā:āVALIDATION_INVALIDā,āmessageā:āinvalid attributeā})ā
The listed slave fields exist, however even if the slave fields arenāt provided or are provided as empty it still fails with the same error.