View Full Version : Custom attributes for form elements?

2 Nov 2009, 8:32 AM
I've got existing forms that integrate with this web app we have at work. I'm interested in converting all of them to use extjs, but am roadblocked by a couple attributes...this is a typical textfield in our current forms:

<input name="__sxform_30475_sxform__" type="text" id="__sxform_30475_sxform__" MetaDataFieldId="30475" MetaDataGroupId="6405" FieldName="Engineer Email" GroupName="SoW" DataType="0" required="false" tabindex="21" />

As you can see, there are a few custom attributes required in the input element (MetaDataFieldId, MetaDataGroupId, GroupName DataType.) How would I go about adding those? I Googled around and found Ext.extend(), but I'm not sure if that's the correct direction I need to be going with this.

Thanks for any help/suggestions!