I.T Solution | I.T Training | I.T Integration System

ExtJS validator property sample

var field_one = new Ext.form.TextField({ name: 'field_one', fieldLabel: 'Field one' }); var field_two = new Ext.form.TextField({ name: 'field_two', fieldLabel: 'Field two' validator: function(value){ if(field_one.getValue() != value) { return 'Error! Value not identical to field one'; } else { return true; } } });

SISINDOTEK – IT Training & Solution Provider
Jl. Sukasenang VI-6B Bandung – Jawa Barat 40124
Tel. 022-71242266 , SMS. 0812.8733.1966
info , YM. sisindotek , ,


Single Post Navigation

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: