Sunday, 15 July 2012

grid - Default Value in RecordField throws JavaScript error on execute -



grid - Default Value in RecordField throws JavaScript error on execute -

adding next record fields gridpanel store makes site throw javascript error uncaught syntaxerror: unexpected identifier chrome console

<ext:recordfield name="listname" allowblank="false" defaultvalue="listname" /> <ext:recordfield name="recipients" allowblank="false" defaultvalue="listmembers" /> <ext:recordfield name="usage" allowblank="true" /> <ext:recordfield name="responsible" allowblank="false" defaultvalue="please add together responsible person(s)/ group(s)" />

firebug console gives next error:

syntaxerror: missing } after property list [break on error] ...,name:"responsible",defaultvalue:please add together responsible person(s)/ group(s)}]}),... ---------------------------------------------| admin.aspx (line 16, col 60)

it looks if default value not correctly quoted string, how can prepare this?

it seems default value of record field supposed javascript variable. double-quoting defaultvalue="'foo bar'" fixes problem

javascript grid store default-value ext.net

No comments:

Post a Comment