Solved! Go to Solution.
I didn't find a way to move the label to the top of the input
<!--- Form to display the attributes of the active feature. --> <mx:Form id="form" width="100%" height="100%" enabled.disabled="false" horizontalScrollPolicy="off" maxHeight="{hostComponent.getStyle('formMaxHeight')}" verticalScrollPolicy="auto" childAdd="form_childAddHandler(event)"> </mx:Form> // in script tag protected function form_childAddHandler(event:ChildExistenceChangedEvent):void { var displayObject:DisplayObject = event.relatedObject; if (displayObject != null && displayObject is mx.containers.FormItem) { var formItem:FormItem = displayObject as FormItem; var labelValue:String = formItem.label; formItem.label = ""; var lbl:Label = new Label(); lbl.text = labelValue; formItem.addChildAt(lbl, 0); } }I didn't find a way to move the label to the top of the input
<!--- Form to display the attributes of the active feature. --> <mx:Form id="form" width="100%" height="100%" enabled.disabled="false" horizontalScrollPolicy="off" maxHeight="{hostComponent.getStyle('formMaxHeight')}" verticalScrollPolicy="auto" childAdd="form_childAddHandler(event)"> </mx:Form> // in script tag protected function form_childAddHandler(event:ChildExistenceChangedEvent):void { var displayObject:DisplayObject = event.relatedObject; if (displayObject != null && displayObject is mx.containers.FormItem) { var formItem:FormItem = displayObject as FormItem; var labelValue:String = formItem.label; formItem.label = ""; var lbl:Label = new Label(); lbl.text = labelValue; formItem.addChildAt(lbl, 0); } }