Thank you, Craig, for your prompt response. I was actually attempting to utilize a form template, but I came across a syntax element that suggested adding a container: 'some DOM ID.' It appears this might be an attempt to place the form outside of the editor, depending on the container's placement. Could you please clarify this for me? I have also included the code snippets below to provide further context.
const layer = new FeatureLayer({
source: featureData,
objectIdField: "ObjectID",
geometryType: "point",
renderer: {
type: "unique-value",
field: "style", // Field used for unique values (your "color" attribute)
uniqueValueInfos: [
{
value: "bar", // Match this value in your "color" attribute
symbol: barStyleSymbol, // Use the default symbol
},
{
value: "atm", // Match this value in your "color" attribute
symbol: atmStyleSymbol, // Use the default symbol
}
],
defaultSymbol: defaultStyleSymbol, // Use the default symbol
},
fields: [
{
name: "ObjectID",
alias: "ObjectID",
type: "oid",
},
{
name: "Name",
alias: "Name",
type: "string",
},
{
name: "Place",
alias: "Place",
type: "string",
},
{
name: "color",
alias: "Color",
type: "string",
},
{
name: "style", // Field for selecting Web Style Symbol
alias: "Style",
type: "string",
domain: {
type: "coded-value",
name: "style",
codedValues: [
{
name: "ATM",
code: "atm",
},
{
name: "Bar",
code: "bar",
},
]
}
},
{
name: "gender",
alias: "Gender",
type: "string",
// editorType: "radio",
domain: {
type: "coded-value",
name: "gender",
codedValues: [
{
name: "Male",
code: "Male",
},
{
name: "Female",
code: "Female",
},
],
},
},
],
});
const editor = new Editor({
view: view,
});