Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6790659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:45:05+00:00 2026-05-26T17:45:05+00:00

I am using ExtJS Forms. My form code is as follows: Ext.create(‘Ext.form.Panel’, { width:

  • 0

I am using ExtJS Forms.

My form code is as follows:

Ext.create('Ext.form.Panel', {
    width: 600,
    layout: 'anchor',
    defaultType: 'textfield',
    items: [{
        fieldLabel: "Specimen",
        name: "Specimen"
    }, {
    .
    .
    .
    }, {
        fieldLabel: "Time Stamp",
        name: "timestamp",

        xtype: "timefield",

        allowBlank: false
    }],
    buttons: [{
        text: 'Save',
        handler: function() {

            var form = this.up('form').getForm();

            var fieldValuePair = form.getFieldValues();

        }
    }],
    renderTo: "ui"
});                 

For some special purpose, I want to get the id/value pairs in json format, which I have acheived using the .getFieldValues() function.

The problem is, when I press the “Save” button, the “fieldValuePair” variable in the handler function correctly gets all the values in json format except for the fields that have the “timefield” or “datefield” xtypes.

I have searched the web, but didn’t come across any solution.

Any idea what may be the problem…?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:45:06+00:00Added an answer on May 26, 2026 at 5:45 pm

    Try with:

    handler: function () {
                var form = this.up('form').getForm();
                var formValues = form.getValues(); // instead getFieldValues
                console.log(formValues);
            }
    

    this way it returns:

     date    "12:30 AM"
    

    and not:

     date
    Date {Tue Jan 01 2008 00:15:00 GMT+0100 (Central European Standard Time)} // this being another object 
    

    cheers!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using ExtJS to create a formPanel: new Ext.FormPanel({ labelAlign: 'top', title: 'Loading Contact...',
I am using this article of architecture http://blog.extjs.eu/know-how/writing-a-big-application-in-ext/ in my code: I have this
I'm trying to create a dynamic grid using ExtJS. The grid is built and
// Using extjs 3.x var box = new Ext.Textfield { /* textField configuration */
How do you implement a multiselect combobox as part of a Ext.FormPanel using ExtJs?
I'm using ExtJS 3.2 and have content inside of a tab panel, and the
I am using ExtJS for my project. I need to create a window in
I want to know if we can create reports using EXTJS. Thnx a lot
I'm using ExtJS to make a form that generates a report from the data
Server side extjs form validation using zend framework I have extended Zend_Form class to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.