Home > JavaScript > How to eliminate ExtJS form to post emptyText?

How to eliminate ExtJS form to post emptyText?

If you insert emptyText attribute in the form field, do not forget to set the attribute

submitEmptyText: false

in the part of the confirmation form. If you do not do this, the text of the attribute emptyText will be sent as a regular content.

Example:

this.up('form').getForm().submit({
	method			: 'POST',
	params			: { kontakti:izmene_kontakti },
	waitMsg			: core_messages.snimanje,
	submitEmptyText	: false,
	...
  1. No comments yet.
  1. No trackbacks yet.