Hey y'all,
I have a custom xtype that I'm making that incorporates a selection of a document type as one of the fields. See code below. The problem is that this field's selection is not getting saved anywhere. I've debugged the js for my custom xtype and the "value" of typeField is never anything other than undefined or "", even when I make a selection. Any idea what could be going on here? Is selection somehow incompatible with custom xtypes or is there something else I need to do or is wrong. Appreciate any help in advance! Thank you!
//code this.typeField = new CQ.form.Selection({ type:"select", name: "./testTypeField", fieldDescription: "Choose Attachment Type", options: [ { value: "doc", text: "DOC" }, { value: "pdf", text: "PDF" }, { value: "xls", text: "XLS" }, { value: "zip", text: "ZIP" } ], listeners: { change: { scope:this, fn:this.updateHidden } } }); //more code