Hi @ABid2, Which AEM version are you using? From AEM 6.5.3, custom scripts is not required, you can check below dialog.
<backgroundConfig jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/select"
fieldLabel="Background Config"
name="./backgroundC...