Form Ui Component doesn't submit field in the html content

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





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







up vote
3
down vote

favorite












I built a ui component form and it's a compilation of <field> tag and <htmlContent> tag. This is the htmlContent :



<htmlContent name="resource">
<block class="NamespaceModuleNameBlockAdminhtmlPackageRoleTree" name="package_form.resources_access.resource_tree"/>
</htmlContent>


I loaded a template inside the block NamespaceModuleNameBlockAdminhtmlPackageRoleTree and created some dynamic input text fields in the template.



The problem is my input text field inside htmlContent didn't submit with other <field>
Did I miss something when I was creating the htmlContent?







share|improve this question




















  • You inject this element in witch component, you d ont have any error in logs?
    – Mohamed El Mrabet
    Aug 16 at 6:04










  • I try it on my local,It is working
    – viet anh
    Aug 16 at 7:50
















up vote
3
down vote

favorite












I built a ui component form and it's a compilation of <field> tag and <htmlContent> tag. This is the htmlContent :



<htmlContent name="resource">
<block class="NamespaceModuleNameBlockAdminhtmlPackageRoleTree" name="package_form.resources_access.resource_tree"/>
</htmlContent>


I loaded a template inside the block NamespaceModuleNameBlockAdminhtmlPackageRoleTree and created some dynamic input text fields in the template.



The problem is my input text field inside htmlContent didn't submit with other <field>
Did I miss something when I was creating the htmlContent?







share|improve this question




















  • You inject this element in witch component, you d ont have any error in logs?
    – Mohamed El Mrabet
    Aug 16 at 6:04










  • I try it on my local,It is working
    – viet anh
    Aug 16 at 7:50












up vote
3
down vote

favorite









up vote
3
down vote

favorite











I built a ui component form and it's a compilation of <field> tag and <htmlContent> tag. This is the htmlContent :



<htmlContent name="resource">
<block class="NamespaceModuleNameBlockAdminhtmlPackageRoleTree" name="package_form.resources_access.resource_tree"/>
</htmlContent>


I loaded a template inside the block NamespaceModuleNameBlockAdminhtmlPackageRoleTree and created some dynamic input text fields in the template.



The problem is my input text field inside htmlContent didn't submit with other <field>
Did I miss something when I was creating the htmlContent?







share|improve this question












I built a ui component form and it's a compilation of <field> tag and <htmlContent> tag. This is the htmlContent :



<htmlContent name="resource">
<block class="NamespaceModuleNameBlockAdminhtmlPackageRoleTree" name="package_form.resources_access.resource_tree"/>
</htmlContent>


I loaded a template inside the block NamespaceModuleNameBlockAdminhtmlPackageRoleTree and created some dynamic input text fields in the template.



The problem is my input text field inside htmlContent didn't submit with other <field>
Did I miss something when I was creating the htmlContent?









share|improve this question











share|improve this question




share|improve this question










asked Aug 16 at 4:36









thanhdv2811

36018




36018











  • You inject this element in witch component, you d ont have any error in logs?
    – Mohamed El Mrabet
    Aug 16 at 6:04










  • I try it on my local,It is working
    – viet anh
    Aug 16 at 7:50
















  • You inject this element in witch component, you d ont have any error in logs?
    – Mohamed El Mrabet
    Aug 16 at 6:04










  • I try it on my local,It is working
    – viet anh
    Aug 16 at 7:50















You inject this element in witch component, you d ont have any error in logs?
– Mohamed El Mrabet
Aug 16 at 6:04




You inject this element in witch component, you d ont have any error in logs?
– Mohamed El Mrabet
Aug 16 at 6:04












I try it on my local,It is working
– viet anh
Aug 16 at 7:50




I try it on my local,It is working
– viet anh
Aug 16 at 7:50










1 Answer
1






active

oldest

votes

















up vote
3
down vote













I found my answer by myself. I need to add data-form-part="form-name" to every input or select in the htmlContent. Then my data can be submitted with other <field> tag






share|improve this answer




















    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    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%2f238520%2fform-ui-component-doesnt-submit-field-in-the-html-content%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    3
    down vote













    I found my answer by myself. I need to add data-form-part="form-name" to every input or select in the htmlContent. Then my data can be submitted with other <field> tag






    share|improve this answer
























      up vote
      3
      down vote













      I found my answer by myself. I need to add data-form-part="form-name" to every input or select in the htmlContent. Then my data can be submitted with other <field> tag






      share|improve this answer






















        up vote
        3
        down vote










        up vote
        3
        down vote









        I found my answer by myself. I need to add data-form-part="form-name" to every input or select in the htmlContent. Then my data can be submitted with other <field> tag






        share|improve this answer












        I found my answer by myself. I need to add data-form-part="form-name" to every input or select in the htmlContent. Then my data can be submitted with other <field> tag







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 16 at 7:45









        thanhdv2811

        36018




        36018






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f238520%2fform-ui-component-doesnt-submit-field-in-the-html-content%23new-answer', 'question_page');

            );

            Post as a guest













































































            這個網誌中的熱門文章

            Is there any way to eliminate the singular point to solve this integral by hand or by approximations?

            Why am i infinitely getting the same tweet with the Twitter Search API?

            Carbon dioxide