Get form field by name

got a form named 'MyForm' with textfield named 'NameField'
Which is best method to read textfiel value

triedExt.get(''MyForm' ').fields.get('NameField').value which is not really working.

Ext.getDom(id) works if use 'id' instead of 'name'.But 'id' is really required? can it work with 'name' alone.

Never used 'id' for form elements earlier. and values accessed by document.forms[''].elements[''] instead of document.getElementbyid('') which was expensive.
And 'id' used for div,span,table etc.
Is that the best practice to follow in extjs also considering UI with too many form fields and other html elements.

nothing works

Hello All

Nothing works to get particular field name from form. My condition is that, I have a form including some text field with same name like 'player[]' (array). Now I want to get each player field to validate.