Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-2432

When saving, the hidden fields are not well valued

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.1, 3.2
    • None
    • None
    • None

      In a extjs form, a hidden field can not be retrieved by findField method

      new Ext.form.Hidden ({
          name: "myhiddenfield"
      });
      
      extForm.findField("myhiddenfield") => null;
      

      We need to use Ext.getCmp instead

      new Ext.form.Hidden ({
          name: "myhiddenfield",
          id: "myhiddenfieldid",
      });
      
      Ext.getCmp("myhiddenfieldid") => Object;
      

            Unassigned Unassigned
            laurence Laurence Aumeunier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: