PDA

View Full Version : [FIXED-224] Hidden-Field doesn't work



jschoder
12 Aug 2010, 3:45 AM
Even in the Form-Example (Chrome-Browser) the hidden-Field is not working. It creates the div but not the "hidden"-Field.

I added the "renderTpl"-parameter to my system to make it work:

renderTpl: [
'<div <tpl if="id">id="{id}" </tpl>class="{baseCls} <tpl if="cmpCls"> {cmpCls}</tpl><tpl if="ui"> {uiBase}-{ui}</tpl> <tpl if="label">{labelAlign}</tpl>" <tpl if="style"> style="{style}"</tpl>>',
'<input id="{inputId}" type="{type}" name="{name}" class="{fieldCls}" />',
'</div>'
],
The div-tag is mostly copied from ext.Field

In the version 0.93 of the file ext-touch-debug-w-comments.js they change had to take place in line 27414.

Jamie Avins
12 Aug 2010, 9:26 AM
Thank you for the report.

hendricd
12 Aug 2010, 12:08 PM
This has been fixed for the next Touch release.

In the interim, this override will permit the hidden input to be rendered:



Ext.override(Ext.form.HiddenField , {
autoCreateField: true
})