Form Ui Component doesn't submit field in the html content
Clash 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
?
magento2 uicomponent
add a comment |Â
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
?
magento2 uicomponent
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
add a comment |Â
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
?
magento2 uicomponent
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
?
magento2 uicomponent
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
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
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
answered Aug 16 at 7:45
thanhdv2811
36018
36018
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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