Enonic version: 6.5.2
OS: Ubuntu
Is it possible to add a value to a ComboBox when creating an object ? Does enonic allows to do that?
Thx in advance!
Example.:
<input name="status" type="ComboBox">
<label>Status</label>
<occurrences minimum="0" maximum="1"/>
<config>
<option value="someValue">someValue</option>
<option value="someValue2">someValue2</option>
</config>
</input>
var projectObj = {
parentPath: '/somePath',
displayName: title,
draft: true,
contentType: 'com.x:y',
data: {
id: projectId,
startDate: projectStartDate,
endDate: projectFinishDate,
status: status,
lastModified: lastModified,
body: body
},
x: {},
page: {},
attachments: {}
};
var createProjectResult = contentLib.create(projectObj);
var publishProjectResult = publishProject(createProjectResult._id);