Magento 2: available field types in system.xmlConfig value not rendering in Magento 2Description of Magento2 different existing types of .xml files and parsingmagento 2 captcha not rendering if I override layout xmlHow to introduce a new type for widget parameter in Magento2?main.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento2 : Retrieve Multiselect Values in system.xmlMagento 2.2.5: Overriding Admin Controller sales/orderxsi:type, is blocked or not validly derived from the type definition of the element declarationMagento 2.2.5: Add, Update and Delete existing products Custom Options

Do I need life insurance if I can cover my own funeral costs?

What is the greatest age difference between a married couple in Tanach?

Make a transparent 448*448 image

Is a lawful good "antagonist" effective?

Why do Australian milk farmers need to protest supermarkets' milk price?

Is it possible to upcast ritual spells?

How is the Swiss post e-voting system supposed to work, and how was it wrong?

Life insurance that covers only simultaneous/dual deaths

Making a sword in the stone, in a medieval world without magic

Instead of Universal Basic Income, why not Universal Basic NEEDS?

I need to drive a 7/16" nut but am unsure how to use the socket I bought for my screwdriver

How can I change step-down my variable input voltage? [Microcontroller]

Why doesn't the EU now just force the UK to choose between referendum and no-deal?

How to explain that I do not want to visit a country due to personal safety concern?

How could a scammer know the apps on my phone / iTunes account?

An Accountant Seeks the Help of a Mathematician

Did CPM support custom hardware using device drivers?

Is it possible that AIC = BIC?

RegionDifference for Cylinder and Cuboid

How to generate globally unique ids for different tables of the same database?

Old race car problem/puzzle

PlotLabels with equations not expressions

Welcoming 2019 Pi day: How to draw the letter π?

Why did it take so long to abandon sail after steamships were demonstrated?



Magento 2: available field types in system.xml


Config value not rendering in Magento 2Description of Magento2 different existing types of .xml files and parsingmagento 2 captcha not rendering if I override layout xmlHow to introduce a new type for widget parameter in Magento2?main.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento2 : Retrieve Multiselect Values in system.xmlMagento 2.2.5: Overriding Admin Controller sales/orderxsi:type, is blocked or not validly derived from the type definition of the element declarationMagento 2.2.5: Add, Update and Delete existing products Custom Options













21















What are available values for field types in etc/system.xml configuration file:



<?xml version="1.0"?>
<config
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="...">
<group id="...">
<field id="..." type="???">
...
</field>
</group>
</section>
</system>
</config>









share|improve this question


























    21















    What are available values for field types in etc/system.xml configuration file:



    <?xml version="1.0"?>
    <config
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
    <system>
    <section id="...">
    <group id="...">
    <field id="..." type="???">
    ...
    </field>
    </group>
    </section>
    </system>
    </config>









    share|improve this question
























      21












      21








      21


      10






      What are available values for field types in etc/system.xml configuration file:



      <?xml version="1.0"?>
      <config
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
      <system>
      <section id="...">
      <group id="...">
      <field id="..." type="???">
      ...
      </field>
      </group>
      </section>
      </system>
      </config>









      share|improve this question














      What are available values for field types in etc/system.xml configuration file:



      <?xml version="1.0"?>
      <config
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
      <system>
      <section id="...">
      <group id="...">
      <field id="..." type="???">
      ...
      </field>
      </group>
      </section>
      </system>
      </config>






      magento2 system-configuration






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 22 '17 at 9:57









      Alex GusevAlex Gusev

      1,01411028




      1,01411028




















          3 Answers
          3






          active

          oldest

          votes


















          39














          Magento 2 system configuration provides below fields type.



          checkbox,
          checkboxes,
          column,
          date,
          editablemultiselect,
          editor,
          fieldset,
          file,
          gallery,
          hidden,
          image,
          imagefile,
          label,
          link,
          multiline,
          multiselect,
          note,
          obscure,
          password,
          radio,
          radios,
          reset,
          select,
          submit,
          text,
          textarea,
          time





          share|improve this answer

























          • label does not work

            – Zorox
            Aug 31 '17 at 10:00











          • any idea on how to make Yes/NO button with green/gray color ?

            – Zeeshan Khuwaja
            Jun 21 '18 at 3:55











          • @ZeeshanKhuwaja and future people, this doesn't link to the Q but you want to append <source_model>MagentoConfigModelConfigSourceYesno</source_model> to your field

            – John
            yesterday


















          11














          Looking at the file /lib/internal/Magento/Framework/Data/Form/Element/Factory.php (found here on Github, for Magento 2.2-develop), one can find the following default list of elements, as specified by Amit in his answer:



          // Factory.php, lines 26-55
          protected $_standardTypes = [
          'button',
          'checkbox',
          'checkboxes',
          'column',
          'date',
          'editablemultiselect',
          'editor',
          'fieldset',
          'file',
          'gallery',
          'hidden',
          'image',
          'imagefile',
          'label',
          'link',
          'multiline',
          'multiselect',
          'note',
          'obscure',
          'password',
          'radio',
          'radios',
          'reset',
          'select',
          'submit',
          'text',
          'textarea',
          'time',
          ];


          If Composer was used to install Magento, the data may also be found in /vendor/magento/framework/Data/Form/Element/Factory.php, as mentioned in Mohit's comment below.






          share|improve this answer




















          • 2





            My apologies for adding a new answer rather than commenting on Amit's. As of posting this answer I do not have enough reputation to comment on others' answers.

            – RNanoware
            Feb 28 '18 at 19:55











          • I think you have completed Amit's answer by adding factory file details. Upvoted for this.

            – Mohit Kumar Arora
            Apr 25 '18 at 12:24






          • 3





            But my Magento 2.2.3 does not have such path. I could find Factory.php file at /vendor/magento/framework/Data/Form/Element/Factory.php path.

            – Mohit Kumar Arora
            Apr 25 '18 at 12:30







          • 2





            @MohitKumarArora You are correct! I think that the differing file paths have to do with how Magento was installed: cloning from Git seems to use /lib/internal, while Composer is known to create the /vendor folder. I will update the answer accordingly. Thanks!

            – RNanoware
            Apr 25 '18 at 12:57


















          0














          maybe have maximum select of multiselect field type?






          share|improve this answer








          New contributor




          huykon225 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.



















            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "479"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f155869%2fmagento-2-available-field-types-in-system-xml%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            39














            Magento 2 system configuration provides below fields type.



            checkbox,
            checkboxes,
            column,
            date,
            editablemultiselect,
            editor,
            fieldset,
            file,
            gallery,
            hidden,
            image,
            imagefile,
            label,
            link,
            multiline,
            multiselect,
            note,
            obscure,
            password,
            radio,
            radios,
            reset,
            select,
            submit,
            text,
            textarea,
            time





            share|improve this answer

























            • label does not work

              – Zorox
              Aug 31 '17 at 10:00











            • any idea on how to make Yes/NO button with green/gray color ?

              – Zeeshan Khuwaja
              Jun 21 '18 at 3:55











            • @ZeeshanKhuwaja and future people, this doesn't link to the Q but you want to append <source_model>MagentoConfigModelConfigSourceYesno</source_model> to your field

              – John
              yesterday















            39














            Magento 2 system configuration provides below fields type.



            checkbox,
            checkboxes,
            column,
            date,
            editablemultiselect,
            editor,
            fieldset,
            file,
            gallery,
            hidden,
            image,
            imagefile,
            label,
            link,
            multiline,
            multiselect,
            note,
            obscure,
            password,
            radio,
            radios,
            reset,
            select,
            submit,
            text,
            textarea,
            time





            share|improve this answer

























            • label does not work

              – Zorox
              Aug 31 '17 at 10:00











            • any idea on how to make Yes/NO button with green/gray color ?

              – Zeeshan Khuwaja
              Jun 21 '18 at 3:55











            • @ZeeshanKhuwaja and future people, this doesn't link to the Q but you want to append <source_model>MagentoConfigModelConfigSourceYesno</source_model> to your field

              – John
              yesterday













            39












            39








            39







            Magento 2 system configuration provides below fields type.



            checkbox,
            checkboxes,
            column,
            date,
            editablemultiselect,
            editor,
            fieldset,
            file,
            gallery,
            hidden,
            image,
            imagefile,
            label,
            link,
            multiline,
            multiselect,
            note,
            obscure,
            password,
            radio,
            radios,
            reset,
            select,
            submit,
            text,
            textarea,
            time





            share|improve this answer















            Magento 2 system configuration provides below fields type.



            checkbox,
            checkboxes,
            column,
            date,
            editablemultiselect,
            editor,
            fieldset,
            file,
            gallery,
            hidden,
            image,
            imagefile,
            label,
            link,
            multiline,
            multiselect,
            note,
            obscure,
            password,
            radio,
            radios,
            reset,
            select,
            submit,
            text,
            textarea,
            time






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Oct 2 '17 at 9:39









            Dinesh Yadav

            4,0701937




            4,0701937










            answered Jan 22 '17 at 10:21









            Amit BeraAmit Bera

            59.1k1575175




            59.1k1575175












            • label does not work

              – Zorox
              Aug 31 '17 at 10:00











            • any idea on how to make Yes/NO button with green/gray color ?

              – Zeeshan Khuwaja
              Jun 21 '18 at 3:55











            • @ZeeshanKhuwaja and future people, this doesn't link to the Q but you want to append <source_model>MagentoConfigModelConfigSourceYesno</source_model> to your field

              – John
              yesterday

















            • label does not work

              – Zorox
              Aug 31 '17 at 10:00











            • any idea on how to make Yes/NO button with green/gray color ?

              – Zeeshan Khuwaja
              Jun 21 '18 at 3:55











            • @ZeeshanKhuwaja and future people, this doesn't link to the Q but you want to append <source_model>MagentoConfigModelConfigSourceYesno</source_model> to your field

              – John
              yesterday
















            label does not work

            – Zorox
            Aug 31 '17 at 10:00





            label does not work

            – Zorox
            Aug 31 '17 at 10:00













            any idea on how to make Yes/NO button with green/gray color ?

            – Zeeshan Khuwaja
            Jun 21 '18 at 3:55





            any idea on how to make Yes/NO button with green/gray color ?

            – Zeeshan Khuwaja
            Jun 21 '18 at 3:55













            @ZeeshanKhuwaja and future people, this doesn't link to the Q but you want to append <source_model>MagentoConfigModelConfigSourceYesno</source_model> to your field

            – John
            yesterday





            @ZeeshanKhuwaja and future people, this doesn't link to the Q but you want to append <source_model>MagentoConfigModelConfigSourceYesno</source_model> to your field

            – John
            yesterday













            11














            Looking at the file /lib/internal/Magento/Framework/Data/Form/Element/Factory.php (found here on Github, for Magento 2.2-develop), one can find the following default list of elements, as specified by Amit in his answer:



            // Factory.php, lines 26-55
            protected $_standardTypes = [
            'button',
            'checkbox',
            'checkboxes',
            'column',
            'date',
            'editablemultiselect',
            'editor',
            'fieldset',
            'file',
            'gallery',
            'hidden',
            'image',
            'imagefile',
            'label',
            'link',
            'multiline',
            'multiselect',
            'note',
            'obscure',
            'password',
            'radio',
            'radios',
            'reset',
            'select',
            'submit',
            'text',
            'textarea',
            'time',
            ];


            If Composer was used to install Magento, the data may also be found in /vendor/magento/framework/Data/Form/Element/Factory.php, as mentioned in Mohit's comment below.






            share|improve this answer




















            • 2





              My apologies for adding a new answer rather than commenting on Amit's. As of posting this answer I do not have enough reputation to comment on others' answers.

              – RNanoware
              Feb 28 '18 at 19:55











            • I think you have completed Amit's answer by adding factory file details. Upvoted for this.

              – Mohit Kumar Arora
              Apr 25 '18 at 12:24






            • 3





              But my Magento 2.2.3 does not have such path. I could find Factory.php file at /vendor/magento/framework/Data/Form/Element/Factory.php path.

              – Mohit Kumar Arora
              Apr 25 '18 at 12:30







            • 2





              @MohitKumarArora You are correct! I think that the differing file paths have to do with how Magento was installed: cloning from Git seems to use /lib/internal, while Composer is known to create the /vendor folder. I will update the answer accordingly. Thanks!

              – RNanoware
              Apr 25 '18 at 12:57















            11














            Looking at the file /lib/internal/Magento/Framework/Data/Form/Element/Factory.php (found here on Github, for Magento 2.2-develop), one can find the following default list of elements, as specified by Amit in his answer:



            // Factory.php, lines 26-55
            protected $_standardTypes = [
            'button',
            'checkbox',
            'checkboxes',
            'column',
            'date',
            'editablemultiselect',
            'editor',
            'fieldset',
            'file',
            'gallery',
            'hidden',
            'image',
            'imagefile',
            'label',
            'link',
            'multiline',
            'multiselect',
            'note',
            'obscure',
            'password',
            'radio',
            'radios',
            'reset',
            'select',
            'submit',
            'text',
            'textarea',
            'time',
            ];


            If Composer was used to install Magento, the data may also be found in /vendor/magento/framework/Data/Form/Element/Factory.php, as mentioned in Mohit's comment below.






            share|improve this answer




















            • 2





              My apologies for adding a new answer rather than commenting on Amit's. As of posting this answer I do not have enough reputation to comment on others' answers.

              – RNanoware
              Feb 28 '18 at 19:55











            • I think you have completed Amit's answer by adding factory file details. Upvoted for this.

              – Mohit Kumar Arora
              Apr 25 '18 at 12:24






            • 3





              But my Magento 2.2.3 does not have such path. I could find Factory.php file at /vendor/magento/framework/Data/Form/Element/Factory.php path.

              – Mohit Kumar Arora
              Apr 25 '18 at 12:30







            • 2





              @MohitKumarArora You are correct! I think that the differing file paths have to do with how Magento was installed: cloning from Git seems to use /lib/internal, while Composer is known to create the /vendor folder. I will update the answer accordingly. Thanks!

              – RNanoware
              Apr 25 '18 at 12:57













            11












            11








            11







            Looking at the file /lib/internal/Magento/Framework/Data/Form/Element/Factory.php (found here on Github, for Magento 2.2-develop), one can find the following default list of elements, as specified by Amit in his answer:



            // Factory.php, lines 26-55
            protected $_standardTypes = [
            'button',
            'checkbox',
            'checkboxes',
            'column',
            'date',
            'editablemultiselect',
            'editor',
            'fieldset',
            'file',
            'gallery',
            'hidden',
            'image',
            'imagefile',
            'label',
            'link',
            'multiline',
            'multiselect',
            'note',
            'obscure',
            'password',
            'radio',
            'radios',
            'reset',
            'select',
            'submit',
            'text',
            'textarea',
            'time',
            ];


            If Composer was used to install Magento, the data may also be found in /vendor/magento/framework/Data/Form/Element/Factory.php, as mentioned in Mohit's comment below.






            share|improve this answer















            Looking at the file /lib/internal/Magento/Framework/Data/Form/Element/Factory.php (found here on Github, for Magento 2.2-develop), one can find the following default list of elements, as specified by Amit in his answer:



            // Factory.php, lines 26-55
            protected $_standardTypes = [
            'button',
            'checkbox',
            'checkboxes',
            'column',
            'date',
            'editablemultiselect',
            'editor',
            'fieldset',
            'file',
            'gallery',
            'hidden',
            'image',
            'imagefile',
            'label',
            'link',
            'multiline',
            'multiselect',
            'note',
            'obscure',
            'password',
            'radio',
            'radios',
            'reset',
            'select',
            'submit',
            'text',
            'textarea',
            'time',
            ];


            If Composer was used to install Magento, the data may also be found in /vendor/magento/framework/Data/Form/Element/Factory.php, as mentioned in Mohit's comment below.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 25 '18 at 13:00

























            answered Feb 28 '18 at 19:29









            RNanowareRNanoware

            17618




            17618







            • 2





              My apologies for adding a new answer rather than commenting on Amit's. As of posting this answer I do not have enough reputation to comment on others' answers.

              – RNanoware
              Feb 28 '18 at 19:55











            • I think you have completed Amit's answer by adding factory file details. Upvoted for this.

              – Mohit Kumar Arora
              Apr 25 '18 at 12:24






            • 3





              But my Magento 2.2.3 does not have such path. I could find Factory.php file at /vendor/magento/framework/Data/Form/Element/Factory.php path.

              – Mohit Kumar Arora
              Apr 25 '18 at 12:30







            • 2





              @MohitKumarArora You are correct! I think that the differing file paths have to do with how Magento was installed: cloning from Git seems to use /lib/internal, while Composer is known to create the /vendor folder. I will update the answer accordingly. Thanks!

              – RNanoware
              Apr 25 '18 at 12:57












            • 2





              My apologies for adding a new answer rather than commenting on Amit's. As of posting this answer I do not have enough reputation to comment on others' answers.

              – RNanoware
              Feb 28 '18 at 19:55











            • I think you have completed Amit's answer by adding factory file details. Upvoted for this.

              – Mohit Kumar Arora
              Apr 25 '18 at 12:24






            • 3





              But my Magento 2.2.3 does not have such path. I could find Factory.php file at /vendor/magento/framework/Data/Form/Element/Factory.php path.

              – Mohit Kumar Arora
              Apr 25 '18 at 12:30







            • 2





              @MohitKumarArora You are correct! I think that the differing file paths have to do with how Magento was installed: cloning from Git seems to use /lib/internal, while Composer is known to create the /vendor folder. I will update the answer accordingly. Thanks!

              – RNanoware
              Apr 25 '18 at 12:57







            2




            2





            My apologies for adding a new answer rather than commenting on Amit's. As of posting this answer I do not have enough reputation to comment on others' answers.

            – RNanoware
            Feb 28 '18 at 19:55





            My apologies for adding a new answer rather than commenting on Amit's. As of posting this answer I do not have enough reputation to comment on others' answers.

            – RNanoware
            Feb 28 '18 at 19:55













            I think you have completed Amit's answer by adding factory file details. Upvoted for this.

            – Mohit Kumar Arora
            Apr 25 '18 at 12:24





            I think you have completed Amit's answer by adding factory file details. Upvoted for this.

            – Mohit Kumar Arora
            Apr 25 '18 at 12:24




            3




            3





            But my Magento 2.2.3 does not have such path. I could find Factory.php file at /vendor/magento/framework/Data/Form/Element/Factory.php path.

            – Mohit Kumar Arora
            Apr 25 '18 at 12:30






            But my Magento 2.2.3 does not have such path. I could find Factory.php file at /vendor/magento/framework/Data/Form/Element/Factory.php path.

            – Mohit Kumar Arora
            Apr 25 '18 at 12:30





            2




            2





            @MohitKumarArora You are correct! I think that the differing file paths have to do with how Magento was installed: cloning from Git seems to use /lib/internal, while Composer is known to create the /vendor folder. I will update the answer accordingly. Thanks!

            – RNanoware
            Apr 25 '18 at 12:57





            @MohitKumarArora You are correct! I think that the differing file paths have to do with how Magento was installed: cloning from Git seems to use /lib/internal, while Composer is known to create the /vendor folder. I will update the answer accordingly. Thanks!

            – RNanoware
            Apr 25 '18 at 12:57











            0














            maybe have maximum select of multiselect field type?






            share|improve this answer








            New contributor




            huykon225 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.
























              0














              maybe have maximum select of multiselect field type?






              share|improve this answer








              New contributor




              huykon225 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.






















                0












                0








                0







                maybe have maximum select of multiselect field type?






                share|improve this answer








                New contributor




                huykon225 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.










                maybe have maximum select of multiselect field type?







                share|improve this answer








                New contributor




                huykon225 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                share|improve this answer



                share|improve this answer






                New contributor




                huykon225 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 11 mins ago









                huykon225huykon225

                11




                11




                New contributor




                huykon225 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                huykon225 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                huykon225 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Magento Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f155869%2fmagento-2-available-field-types-in-system-xml%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Nidaros erkebispedøme

                    Birsay

                    Was Woodrow Wilson really a Liberal?Was World War I a war of liberals against authoritarians?Founding Fathers...