Magento 2: available field types in system.xmlConfig value not rendering in Magento 2Description of Magento2...

Make a transparent 448*448 image

Meaning of "SEVERA INDEOVI VAS" from 3rd Century slab

2D counterpart of std::array in C++17

It's a yearly task, alright

Replacing Windows 7 security updates with anti-virus?

Counting certain elements in lists

Possible Leak In Concrete

When do we add an hyphen (-) to a complex adjective word?

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

Should we release the security issues we found in our product as CVE or we can just update those on weekly release notes?

Does the statement `int val = (++i > ++j) ? ++i : ++j;` invoke undefined behavior?

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

How to deal with a cynical class?

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

Know when to turn notes upside-down(eighth notes, sixteen notes, etc.)

How to deal with taxi scam when on vacation?

Why does Deadpool say "You're welcome, Canada," after shooting Ryan Reynolds in the end credits?

How to simplify this time periods definition interface?

How to answer questions about my characters?

What is IP squat space

Is it possible to upcast ritual spells?

Informing my boss about remarks from a nasty colleague

Happy pi day, everyone!

Rejected in 4th interview round citing insufficient years of experience



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








          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








            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








              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








                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








                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


                share






                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 2 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

                    “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

                    How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

                    變成蝙蝠會怎樣? 參考資料 外部連結 导航菜单Thomas Nagel, "What is it like to be a...