Magento 2 How can I add unit of the data in the ui form field? Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How can i rewrite TierPrice Block in Magento2How can I add a custom field to an admin form in Magento 2?Magento 2 : How can I upload files of dynamically added file input fields in the adminHow can we validate individual form field In Magento 2?Magento 2: How add only label field in Ui form?Magento 2 Add new field to Magento_User admin formHow Do we can give dynamic data for a form field in admin form(ui-component) in magento 2Magento 2.2.5 : Add custom field in product attribute add formMagento 2.2.6 : Add custom field in product attribute add form - Is not render the database value on editMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?

3 doors, three guards, one stone

Is the Standard Deduction better than Itemized when both are the same amount?

Seeking colloquialism for “just because”

How do pianists reach extremely loud dynamics?

Why am I getting the error "non-boolean type specified in a context where a condition is expected" for this request?

How can I make names more distinctive without making them longer?

How widely used is the term Treppenwitz? Is it something that most Germans know?

Resolving to minmaj7

Short Story with Cinderella as a Voo-doo Witch

Can a non-EU citizen traveling with me come with me through the EU passport line?

How do I keep my slimes from escaping their pens?

How to deal with a team lead who never gives me credit?

Why do we bend a book to keep it straight?

Can an alien society believe that their star system is the universe?

Why are there no cargo aircraft with "flying wing" design?

Is it ethical to give a final exam after the professor has quit before teaching the remaining chapters of the course?

Do I really need recursive chmod to restrict access to a folder?

Why are Kinder Surprise Eggs illegal in the USA?

Should I discuss the type of campaign with my players?

Identify plant with long narrow paired leaves and reddish stems

What does this icon in iOS Stardew Valley mean?

porting install scripts : can rpm replace apt?

Bete Noir -- no dairy

Apollo command module space walk?



Magento 2 How can I add unit of the data in the ui form field?



Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?How can i rewrite TierPrice Block in Magento2How can I add a custom field to an admin form in Magento 2?Magento 2 : How can I upload files of dynamically added file input fields in the adminHow can we validate individual form field In Magento 2?Magento 2: How add only label field in Ui form?Magento 2 Add new field to Magento_User admin formHow Do we can give dynamic data for a form field in admin form(ui-component) in magento 2Magento 2.2.5 : Add custom field in product attribute add formMagento 2.2.6 : Add custom field in product attribute add form - Is not render the database value on editMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








4















I need to indicate the user that the “unit” of the data to be input, such as currency.



enter image description here



I am using ui component form. How can I achieve it?



Here is my code



<field name="total">
<argument name="data" xsi:type="array">
<item name="config" xsi:type="array">
<item name="label" xsi:type="string">Amount</item>
<item name="visible" xsi:type="boolean">true</item>
<item name="dataType" xsi:type="string">text</item>
<item name="disabled" xsi:type="boolean">true</item>
<item name="formElement" xsi:type="string">input</item>
<item name="source" xsi:type="string">total</item>
<item name="validation" xsi:type="array">
<item name="required-entry" xsi:type="boolean">true</item>
</item>
</item>
</argument>
</field>









share|improve this question






























    4















    I need to indicate the user that the “unit” of the data to be input, such as currency.



    enter image description here



    I am using ui component form. How can I achieve it?



    Here is my code



    <field name="total">
    <argument name="data" xsi:type="array">
    <item name="config" xsi:type="array">
    <item name="label" xsi:type="string">Amount</item>
    <item name="visible" xsi:type="boolean">true</item>
    <item name="dataType" xsi:type="string">text</item>
    <item name="disabled" xsi:type="boolean">true</item>
    <item name="formElement" xsi:type="string">input</item>
    <item name="source" xsi:type="string">total</item>
    <item name="validation" xsi:type="array">
    <item name="required-entry" xsi:type="boolean">true</item>
    </item>
    </item>
    </argument>
    </field>









    share|improve this question


























      4












      4








      4








      I need to indicate the user that the “unit” of the data to be input, such as currency.



      enter image description here



      I am using ui component form. How can I achieve it?



      Here is my code



      <field name="total">
      <argument name="data" xsi:type="array">
      <item name="config" xsi:type="array">
      <item name="label" xsi:type="string">Amount</item>
      <item name="visible" xsi:type="boolean">true</item>
      <item name="dataType" xsi:type="string">text</item>
      <item name="disabled" xsi:type="boolean">true</item>
      <item name="formElement" xsi:type="string">input</item>
      <item name="source" xsi:type="string">total</item>
      <item name="validation" xsi:type="array">
      <item name="required-entry" xsi:type="boolean">true</item>
      </item>
      </item>
      </argument>
      </field>









      share|improve this question
















      I need to indicate the user that the “unit” of the data to be input, such as currency.



      enter image description here



      I am using ui component form. How can I achieve it?



      Here is my code



      <field name="total">
      <argument name="data" xsi:type="array">
      <item name="config" xsi:type="array">
      <item name="label" xsi:type="string">Amount</item>
      <item name="visible" xsi:type="boolean">true</item>
      <item name="dataType" xsi:type="string">text</item>
      <item name="disabled" xsi:type="boolean">true</item>
      <item name="formElement" xsi:type="string">input</item>
      <item name="source" xsi:type="string">total</item>
      <item name="validation" xsi:type="array">
      <item name="required-entry" xsi:type="boolean">true</item>
      </item>
      </item>
      </argument>
      </field>






      magento2 price currency ui-form custom-field






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 17 '18 at 11:53









      Teja Bhagavan Kollepara

      2,99841949




      2,99841949










      asked Jan 5 '17 at 7:21









      Jancy AbrahamJancy Abraham

      1,12111638




      1,12111638




















          1 Answer
          1






          active

          oldest

          votes


















          0














          You can add "addbefore" attribute to your UI component form field.

          Follow this code:



          <field name="xxxxx" sortOrder="50" >
          <argument name="data" xsi:type="array">
          <item name="config" xsi:type="array">
          <item name="dataType" xsi:type="string">text</item>
          <item name="label" xsi:type="string" translate="true">xxxxx xxxxx</item>
          <item name="formElement" xsi:type="string">input</item>
          <item name="source" xsi:type="string">ordercombine</item>
          <item name="dataScope" xsi:type="string">xxxxx</item>
          <item name="default" xsi:type="string">1</item>
          <item name="addbefore" xsi:type="string">$</item>
          </item>
          </argument>
          </field>




          share

























            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%2f153225%2fmagento-2-how-can-i-add-unit-of-the-data-in-the-ui-form-field%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            You can add "addbefore" attribute to your UI component form field.

            Follow this code:



            <field name="xxxxx" sortOrder="50" >
            <argument name="data" xsi:type="array">
            <item name="config" xsi:type="array">
            <item name="dataType" xsi:type="string">text</item>
            <item name="label" xsi:type="string" translate="true">xxxxx xxxxx</item>
            <item name="formElement" xsi:type="string">input</item>
            <item name="source" xsi:type="string">ordercombine</item>
            <item name="dataScope" xsi:type="string">xxxxx</item>
            <item name="default" xsi:type="string">1</item>
            <item name="addbefore" xsi:type="string">$</item>
            </item>
            </argument>
            </field>




            share





























              0














              You can add "addbefore" attribute to your UI component form field.

              Follow this code:



              <field name="xxxxx" sortOrder="50" >
              <argument name="data" xsi:type="array">
              <item name="config" xsi:type="array">
              <item name="dataType" xsi:type="string">text</item>
              <item name="label" xsi:type="string" translate="true">xxxxx xxxxx</item>
              <item name="formElement" xsi:type="string">input</item>
              <item name="source" xsi:type="string">ordercombine</item>
              <item name="dataScope" xsi:type="string">xxxxx</item>
              <item name="default" xsi:type="string">1</item>
              <item name="addbefore" xsi:type="string">$</item>
              </item>
              </argument>
              </field>




              share



























                0












                0








                0







                You can add "addbefore" attribute to your UI component form field.

                Follow this code:



                <field name="xxxxx" sortOrder="50" >
                <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                <item name="dataType" xsi:type="string">text</item>
                <item name="label" xsi:type="string" translate="true">xxxxx xxxxx</item>
                <item name="formElement" xsi:type="string">input</item>
                <item name="source" xsi:type="string">ordercombine</item>
                <item name="dataScope" xsi:type="string">xxxxx</item>
                <item name="default" xsi:type="string">1</item>
                <item name="addbefore" xsi:type="string">$</item>
                </item>
                </argument>
                </field>




                share















                You can add "addbefore" attribute to your UI component form field.

                Follow this code:



                <field name="xxxxx" sortOrder="50" >
                <argument name="data" xsi:type="array">
                <item name="config" xsi:type="array">
                <item name="dataType" xsi:type="string">text</item>
                <item name="label" xsi:type="string" translate="true">xxxxx xxxxx</item>
                <item name="formElement" xsi:type="string">input</item>
                <item name="source" xsi:type="string">ordercombine</item>
                <item name="dataScope" xsi:type="string">xxxxx</item>
                <item name="default" xsi:type="string">1</item>
                <item name="addbefore" xsi:type="string">$</item>
                </item>
                </argument>
                </field>





                share













                share


                share








                edited 3 mins ago









                magefms

                2,7052528




                2,7052528










                answered 8 mins ago









                the lightthe light

                465




                465



























                    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%2f153225%2fmagento-2-how-can-i-add-unit-of-the-data-in-the-ui-form-field%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

                    Can not update quote_id field of “quote_item” table magento 2Magento 2.1 - We can't remove the item. (Shopping Cart doesnt allow us to remove items before becomes empty)Add value for custom quote item attribute using REST apiREST API endpoint v1/carts/cartId/items always returns error messageCorrect way to save entries to databaseHow to remove all associated quote objects of a customer completelyMagento 2 - Save value from custom input field to quote_itemGet quote_item data using quote id and product id filter in Magento 2How to set additional data to quote_item table from controller in Magento 2?What is the purpose of additional_data column in quote_item table in magento2Set Custom Price to Quote item magento2 from controller

                    How to solve knockout JS error in Magento 2 Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?(Magento2) knockout.js:3012 Uncaught ReferenceError: Unable to process bindingUnable to process binding Knockout.js magento 2Cannot read property `scopeLabel` of undefined on Product Detail PageCan't get Customer Data on frontend in Magento 2Magento2 Order Summary - unable to process bindingKO templates are not loading in Magento 2.1 applicationgetting knockout js error magento 2Product grid not load -— Unable to process binding Knockout.js magento 2Product form not loaded in magento2Uncaught ReferenceError: Unable to process binding “if: function()return (isShowLegend()) ” magento 2

                    Nissan Patrol Зміст Перше покоління — 4W60 (1951-1960) | Друге покоління — 60 series (1960-1980) | Третє покоління (1980–2002) | Четверте покоління — Y60 (1987–1998) | П'яте покоління — Y61 (1997–2013) | Шосте покоління — Y62 (2010- ) | Посилання | Зноски | Навігаційне менюОфіційний український сайтТест-драйв Nissan Patrol 2010 7-го поколінняNissan PatrolКак мы тестировали Nissan Patrol 2016рвиправивши або дописавши її