I have a module where I'm overriding some of it's feauture to match what I need. So everything is working but I need to add an editor wysiwyg field into the existing form using an xml (uicomponent) but the module built the forms using php (setField & renderer).

Is there a way I can do this? becaue I really have to be able to create an additional field using xml and not php.


1 Answer 1




 <?xml version="1.0" encoding="UTF-8"?>
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
    <fieldset name="[Fieldet_Name]">
          <field name="new_column">
            <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">New Column</item>
                    <item name="formElement" xsi:type="string">input</item>
                    <item name="source" xsi:type="string">new_column</item>
                    <item name="dataScope" xsi:type="string">new_column</item>
                    <item name="sortOrder" xsi:type="number">20</item>



<?xml version="1.0"?>

<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
    <update handle="styles"/>
        <referenceContainer name="content">
            <uiComponent name="product_form"/>

Note: Please make a sure which ui_component name which you want to add Layout name and file name must be same

I Hope This Helps You

  • I'll try this suggestion of yours and will let you know if this works for me. Thanks
    – bryanxkier
    Feb 6, 2020 at 4:57
  • @bryanxkier let me inform it's works for you ?
    – Msquare
    Feb 16, 2020 at 8:19
  • how can I set that layout xml and ui component on my custom module? because I have to use this on my blog/news module @Msquare
    – bryanxkier
    Feb 24, 2020 at 4:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.