简体   繁体   中英

Validating and getting data in a JSON file (All client side, no server) from form fields in extjs. Absolute beginner

Please help me with creating my first extjs form with basic test and combo box fields. I need to validate and accept data from this form on the client side itself in a json file. No server side scripting needed. Also if you provide some good material to learn extjs it will be appreciated!

There are several configs to use in field configuration. eg 'allowBlank, minLength, maxLength,regex,vtype, validator'.

'isValid' method in formPanel will check the validation.

'getValues' methond will get JSON value from the form.

Sencha extjs documents and examples in its official website are very good already.

Please see a simple fiddle example here

I have done a sample example to load a form from a Json file please check my fiddle here

For Learning.

  1. First start with Sencha Docs.( http://docs.sencha.com/extjs/5.0.1/ )
  2. http://www.extjs-tutorial.com/extjs/Introduction
  3. https://www.tutorialspoint.com/extjs/

The Above tutorials are maily focusing on basics , If you really want to expert just go throught the documentation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM