Magento2: Add validation in dynamic text box?
An Accountant Seeks the Help of a Mathematician
Be in awe of my brilliance!
Should we release the security issues we found in our product as CVE or we can just update those on weekly release notes?
Science-fiction short story where space navy wanted hospital ships and settlers had guns mounted everywhere
Is having access to past exams cheating and, if yes, could it be proven just by a good grade?
Happy pi day, everyone!
Did CPM support custom hardware using device drivers?
What is IP squat space
Does this AnyDice function accurately calculate the number of ogres you make unconcious with three 4th-level castings of Sleep?
How do I interpret this "sky cover" chart?
Make a transparent 448*448 image
Provisioning profile doesn't include the application-identifier and keychain-access-groups entitlements
Why doesn't the EU now just force the UK to choose between referendum and no-deal?
What has been your most complicated TikZ drawing?
Force user to remove USB token
What are the possible solutions of the given equation?
Rejected in 4th interview round citing insufficient years of experience
Sword in the Stone story where the sword was held in place by electromagnets
The use of "touch" and "touch on" in context
Welcoming 2019 Pi day: How to draw the letter π?
Why must traveling waves have the same amplitude to form a standing wave?
Use of プラトニック in this sentence?
Making a sword in the stone, in a medieval world without magic
Professor being mistaken for a grad student
Magento2: Add validation in dynamic text box?
I have added dynamic text box in admin category form.
I want to validate text box must contain 4 comma separate values.
phtml file:
<?php
$_htmlId = 'categorymodel';
$_htmlClass = 'input-text admin__control-text required-entry _required';
$_htmlName = 'model_information';
?>
<div class="control">
<tr id="attribute-options-table">
<td colspan="10" class="data-grid">
<table class="admin__control-table tiers_table" id="tiers_table">
<tbody id="<?= /* @escapeNotVerified */
$_htmlId ?>_container"></tbody>
<tfoot>
<tr>
<td colspan="4" class="a-right" id="modelAddButton">
<button id="modelAddButton" title="Add New Model" type="button"
class="action-default scalable add" data-ui-id="additional-info-add-button">
<span>Add New Model</span>
</button>
</td>
</tr>
</tfoot>
</table>
</td>
</tr>
<script>
require([
'jquery',
'mage/template',
"jquery/ui",
'jquery/validate',
'mage/mage',
"prototype"
], function (jQuery, mageTemplate) {
var modelRowTemplate = '<tr>'
+ '<td><input type="hidden" name="<?= /* @escapeNotVerified */ $_htmlName ?>[{{index}}][model_id]" value="" id="models_{{index}}_model_id" data-form-part="category_form" />'
+ '<input data-form-part="category_form" class="<?= /* @escapeNotVerified */ $_htmlClass ?> required-entry" type="text" name="<?= /* @escapeNotVerified */ $_htmlName ?>[{{index}}][model_name]" value="" id="models_{{index}}_model_name" /></td>'
+ '<td><input data-form-part="category_form" class="<?= /* @escapeNotVerified */ $_htmlClass ?> required-sku" type="text" name="<?= /* @escapeNotVerified */ $_htmlName ?>[{{index}}][sku_list]" value="" id="models_{{index}}_sku_list" /></td>'
// + '<td><input data-form-part="category_form" class="<?= /* @escapeNotVerified */ $_htmlClass ?> required-entry" type="file" name="<?= /* @escapeNotVerified */ $_htmlName ?>[{{index}}][image]" value="" id="models_{{index}}_image" /></td>'
+ '<td class="last"><input data-form-part="category_form" type="hidden" name="<?= /* @escapeNotVerified */ $_htmlName ?>[{{index}}][delete]" class="delete" value="" id="models_{{index}}_delete" />'
+ '<button title="<?= /* @escapeNotVerified */ $block->escapeHtml(__('Delete Model')) ?>" type="button" class="scalable delete icon-btn delete-product-option" id="models_{{index}}_delete_button" onclick="return modelControl.deleteItem(event);">'
+ '<span><span><span><?= /* @escapeNotVerified */ __("Delete") ?></span></span></span></button></td>'
+ '</tr>';
var modelControl = {
template: new Template(modelRowTemplate, new RegExp('(^|.|\r|\n)({{\s*(\w+)\s*}})', "")),
itemsCount: 0,
addItem: function () {
var data = {
model_id: '',
model_name: '',
sku_list: '',
image: '',
index: this.itemsCount++
};
data.model_id = arguments[0];
data.model_name = arguments[1];
data.sku_list = arguments[2];
data.image = arguments[3];
Element.insert($('<?= /* @escapeNotVerified */ $_htmlId ?>_container'), {
bottom: this.template.evaluate(data)
});
if (data.model_id) {
$('models_' + data.index + '_model_id').value = data.model_id;
}
if (data.model_name) {
$('models_' + data.index + '_model_name').value = data.model_name;
}
if (data.sku_list) {
$('models_' + data.index + '_sku_list').value = data.sku_list;
}
// if (data.image) {
// $('models_' + data.index + '_image').value = data.image;
// }
},
deleteItem: function (event) {
var tr = Event.findElement(event, 'tr');
if (tr) {
Element.select(tr, '.delete').each(function (elem) {
elem.value = '1'
});
Element.select(tr, ['input', 'select']).each(function (elem) {
elem.hide()
});
Element.hide(tr);
Element.addClassName(tr, 'no-display template');
}
return false;
}
};
jQuery("#modelAddButton").on("click", function () {
modelControl.addItem();
});
//if(jQuery("button").hasClass("save")){
// jQuery("#save").on("click", function () {
//
// console.log("sdfsf");
//
// var skuList = $('models_0_sku_list').value.split(',');
// console.log(skuList.length);
// if(skuList.length != 5){
// console.log("eror");
// event.preventDefault();
// jQuery('models_0_sku_list').after('<label for="models_0_sku_list" generated="true" class="mage-error" id="models_0_sku_list-error">sku required</label>');
// }
// });
// jQuery.validator.addMethod('required-sku', function (v) {
// var skuList = $('models_0_sku_list').value.split(',');
// console.log(skuList.length);
// if(skuList.length != 5){
// var result = skuList.length < 4;
// event.preventDefault();
// return !result;
// }
//
// }, jQuery.mage.__('Please enter your comment.'));
// jQuery("button[data-form-role="save"]").on("click", function () {
// console.log('sdf');
// });
<?php
if ($block->getCategoryModels()) :
foreach ($block->getCategoryModels() as $model)://echo "<pre>";print_r($model->getData());
?>
modelControl.addItem('<?php echo $model->getId() ?>', '<?php echo $model->getModelName() ?>', '<?php echo $model->getSkuList() ?>', '<?php echo $model->getImage() ?>');
<?php
endforeach;
endif;
?>
window.modelControl = modelControl;
});
</script>
</div>
How to do that ...
Thanks.
magento2.2.2 php-7.1
add a comment |
I have added dynamic text box in admin category form.
I want to validate text box must contain 4 comma separate values.
phtml file:
<?php
$_htmlId = 'categorymodel';
$_htmlClass = 'input-text admin__control-text required-entry _required';
$_htmlName = 'model_information';
?>
<div class="control">
<tr id="attribute-options-table">
<td colspan="10" class="data-grid">
<table class="admin__control-table tiers_table" id="tiers_table">
<tbody id="<?= /* @escapeNotVerified */
$_htmlId ?>_container"></tbody>
<tfoot>
<tr>
<td colspan="4" class="a-right" id="modelAddButton">
<button id="modelAddButton" title="Add New Model" type="button"
class="action-default scalable add" data-ui-id="additional-info-add-button">
<span>Add New Model</span>
</button>
</td>
</tr>
</tfoot>
</table>
</td>
</tr>
<script>
require([
'jquery',
'mage/template',
"jquery/ui",
'jquery/validate',
'mage/mage',
"prototype"
], function (jQuery, mageTemplate) {
var modelRowTemplate = '<tr>'
+ '<td><input type="hidden" name="<?= /* @escapeNotVerified */ $_htmlName ?>[{{index}}][model_id]" value="" id="models_{{index}}_model_id" data-form-part="category_form" />'
+ '<input data-form-part="category_form" class="<?= /* @escapeNotVerified */ $_htmlClass ?> required-entry" type="text" name="<?= /* @escapeNotVerified */ $_htmlName ?>[{{index}}][model_name]" value="" id="models_{{index}}_model_name" /></td>'
+ '<td><input data-form-part="category_form" class="<?= /* @escapeNotVerified */ $_htmlClass ?> required-sku" type="text" name="<?= /* @escapeNotVerified */ $_htmlName ?>[{{index}}][sku_list]" value="" id="models_{{index}}_sku_list" /></td>'
// + '<td><input data-form-part="category_form" class="<?= /* @escapeNotVerified */ $_htmlClass ?> required-entry" type="file" name="<?= /* @escapeNotVerified */ $_htmlName ?>[{{index}}][image]" value="" id="models_{{index}}_image" /></td>'
+ '<td class="last"><input data-form-part="category_form" type="hidden" name="<?= /* @escapeNotVerified */ $_htmlName ?>[{{index}}][delete]" class="delete" value="" id="models_{{index}}_delete" />'
+ '<button title="<?= /* @escapeNotVerified */ $block->escapeHtml(__('Delete Model')) ?>" type="button" class="scalable delete icon-btn delete-product-option" id="models_{{index}}_delete_button" onclick="return modelControl.deleteItem(event);">'
+ '<span><span><span><?= /* @escapeNotVerified */ __("Delete") ?></span></span></span></button></td>'
+ '</tr>';
var modelControl = {
template: new Template(modelRowTemplate, new RegExp('(^|.|\r|\n)({{\s*(\w+)\s*}})', "")),
itemsCount: 0,
addItem: function () {
var data = {
model_id: '',
model_name: '',
sku_list: '',
image: '',
index: this.itemsCount++
};
data.model_id = arguments[0];
data.model_name = arguments[1];
data.sku_list = arguments[2];
data.image = arguments[3];
Element.insert($('<?= /* @escapeNotVerified */ $_htmlId ?>_container'), {
bottom: this.template.evaluate(data)
});
if (data.model_id) {
$('models_' + data.index + '_model_id').value = data.model_id;
}
if (data.model_name) {
$('models_' + data.index + '_model_name').value = data.model_name;
}
if (data.sku_list) {
$('models_' + data.index + '_sku_list').value = data.sku_list;
}
// if (data.image) {
// $('models_' + data.index + '_image').value = data.image;
// }
},
deleteItem: function (event) {
var tr = Event.findElement(event, 'tr');
if (tr) {
Element.select(tr, '.delete').each(function (elem) {
elem.value = '1'
});
Element.select(tr, ['input', 'select']).each(function (elem) {
elem.hide()
});
Element.hide(tr);
Element.addClassName(tr, 'no-display template');
}
return false;
}
};
jQuery("#modelAddButton").on("click", function () {
modelControl.addItem();
});
//if(jQuery("button").hasClass("save")){
// jQuery("#save").on("click", function () {
//
// console.log("sdfsf");
//
// var skuList = $('models_0_sku_list').value.split(',');
// console.log(skuList.length);
// if(skuList.length != 5){
// console.log("eror");
// event.preventDefault();
// jQuery('models_0_sku_list').after('<label for="models_0_sku_list" generated="true" class="mage-error" id="models_0_sku_list-error">sku required</label>');
// }
// });
// jQuery.validator.addMethod('required-sku', function (v) {
// var skuList = $('models_0_sku_list').value.split(',');
// console.log(skuList.length);
// if(skuList.length != 5){
// var result = skuList.length < 4;
// event.preventDefault();
// return !result;
// }
//
// }, jQuery.mage.__('Please enter your comment.'));
// jQuery("button[data-form-role="save"]").on("click", function () {
// console.log('sdf');
// });
<?php
if ($block->getCategoryModels()) :
foreach ($block->getCategoryModels() as $model)://echo "<pre>";print_r($model->getData());
?>
modelControl.addItem('<?php echo $model->getId() ?>', '<?php echo $model->getModelName() ?>', '<?php echo $model->getSkuList() ?>', '<?php echo $model->getImage() ?>');
<?php
endforeach;
endif;
?>
window.modelControl = modelControl;
});
</script>
</div>
How to do that ...
Thanks.
magento2.2.2 php-7.1
add a comment |
I have added dynamic text box in admin category form.
I want to validate text box must contain 4 comma separate values.
phtml file:
<?php
$_htmlId = 'categorymodel';
$_htmlClass = 'input-text admin__control-text required-entry _required';
$_htmlName = 'model_information';
?>
<div class="control">
<tr id="attribute-options-table">
<td colspan="10" class="data-grid">
<table class="admin__control-table tiers_table" id="tiers_table">
<tbody id="<?= /* @escapeNotVerified */
$_htmlId ?>_container"></tbody>
<tfoot>
<tr>
<td colspan="4" class="a-right" id="modelAddButton">
<button id="modelAddButton" title="Add New Model" type="button"
class="action-default scalable add" data-ui-id="additional-info-add-button">
<span>Add New Model</span>
</button>
</td>
</tr>
</tfoot>
</table>
</td>
</tr>
<script>
require([
'jquery',
'mage/template',
"jquery/ui",
'jquery/validate',
'mage/mage',
"prototype"
], function (jQuery, mageTemplate) {
var modelRowTemplate = '<tr>'
+ '<td><input type="hidden" name="<?= /* @escapeNotVerified */ $_htmlName ?>[{{index}}][model_id]" value="" id="models_{{index}}_model_id" data-form-part="category_form" />'
+ '<input data-form-part="category_form" class="<?= /* @escapeNotVerified */ $_htmlClass ?> required-entry" type="text" name="<?= /* @escapeNotVerified */ $_htmlName ?>[{{index}}][model_name]" value="" id="models_{{index}}_model_name" /></td>'
+ '<td><input data-form-part="category_form" class="<?= /* @escapeNotVerified */ $_htmlClass ?> required-sku" type="text" name="<?= /* @escapeNotVerified */ $_htmlName ?>[{{index}}][sku_list]" value="" id="models_{{index}}_sku_list" /></td>'
// + '<td><input data-form-part="category_form" class="<?= /* @escapeNotVerified */ $_htmlClass ?> required-entry" type="file" name="<?= /* @escapeNotVerified */ $_htmlName ?>[{{index}}][image]" value="" id="models_{{index}}_image" /></td>'
+ '<td class="last"><input data-form-part="category_form" type="hidden" name="<?= /* @escapeNotVerified */ $_htmlName ?>[{{index}}][delete]" class="delete" value="" id="models_{{index}}_delete" />'
+ '<button title="<?= /* @escapeNotVerified */ $block->escapeHtml(__('Delete Model')) ?>" type="button" class="scalable delete icon-btn delete-product-option" id="models_{{index}}_delete_button" onclick="return modelControl.deleteItem(event);">'
+ '<span><span><span><?= /* @escapeNotVerified */ __("Delete") ?></span></span></span></button></td>'
+ '</tr>';
var modelControl = {
template: new Template(modelRowTemplate, new RegExp('(^|.|\r|\n)({{\s*(\w+)\s*}})', "")),
itemsCount: 0,
addItem: function () {
var data = {
model_id: '',
model_name: '',
sku_list: '',
image: '',
index: this.itemsCount++
};
data.model_id = arguments[0];
data.model_name = arguments[1];
data.sku_list = arguments[2];
data.image = arguments[3];
Element.insert($('<?= /* @escapeNotVerified */ $_htmlId ?>_container'), {
bottom: this.template.evaluate(data)
});
if (data.model_id) {
$('models_' + data.index + '_model_id').value = data.model_id;
}
if (data.model_name) {
$('models_' + data.index + '_model_name').value = data.model_name;
}
if (data.sku_list) {
$('models_' + data.index + '_sku_list').value = data.sku_list;
}
// if (data.image) {
// $('models_' + data.index + '_image').value = data.image;
// }
},
deleteItem: function (event) {
var tr = Event.findElement(event, 'tr');
if (tr) {
Element.select(tr, '.delete').each(function (elem) {
elem.value = '1'
});
Element.select(tr, ['input', 'select']).each(function (elem) {
elem.hide()
});
Element.hide(tr);
Element.addClassName(tr, 'no-display template');
}
return false;
}
};
jQuery("#modelAddButton").on("click", function () {
modelControl.addItem();
});
//if(jQuery("button").hasClass("save")){
// jQuery("#save").on("click", function () {
//
// console.log("sdfsf");
//
// var skuList = $('models_0_sku_list').value.split(',');
// console.log(skuList.length);
// if(skuList.length != 5){
// console.log("eror");
// event.preventDefault();
// jQuery('models_0_sku_list').after('<label for="models_0_sku_list" generated="true" class="mage-error" id="models_0_sku_list-error">sku required</label>');
// }
// });
// jQuery.validator.addMethod('required-sku', function (v) {
// var skuList = $('models_0_sku_list').value.split(',');
// console.log(skuList.length);
// if(skuList.length != 5){
// var result = skuList.length < 4;
// event.preventDefault();
// return !result;
// }
//
// }, jQuery.mage.__('Please enter your comment.'));
// jQuery("button[data-form-role="save"]").on("click", function () {
// console.log('sdf');
// });
<?php
if ($block->getCategoryModels()) :
foreach ($block->getCategoryModels() as $model)://echo "<pre>";print_r($model->getData());
?>
modelControl.addItem('<?php echo $model->getId() ?>', '<?php echo $model->getModelName() ?>', '<?php echo $model->getSkuList() ?>', '<?php echo $model->getImage() ?>');
<?php
endforeach;
endif;
?>
window.modelControl = modelControl;
});
</script>
</div>
How to do that ...
Thanks.
magento2.2.2 php-7.1
I have added dynamic text box in admin category form.
I want to validate text box must contain 4 comma separate values.
phtml file:
<?php
$_htmlId = 'categorymodel';
$_htmlClass = 'input-text admin__control-text required-entry _required';
$_htmlName = 'model_information';
?>
<div class="control">
<tr id="attribute-options-table">
<td colspan="10" class="data-grid">
<table class="admin__control-table tiers_table" id="tiers_table">
<tbody id="<?= /* @escapeNotVerified */
$_htmlId ?>_container"></tbody>
<tfoot>
<tr>
<td colspan="4" class="a-right" id="modelAddButton">
<button id="modelAddButton" title="Add New Model" type="button"
class="action-default scalable add" data-ui-id="additional-info-add-button">
<span>Add New Model</span>
</button>
</td>
</tr>
</tfoot>
</table>
</td>
</tr>
<script>
require([
'jquery',
'mage/template',
"jquery/ui",
'jquery/validate',
'mage/mage',
"prototype"
], function (jQuery, mageTemplate) {
var modelRowTemplate = '<tr>'
+ '<td><input type="hidden" name="<?= /* @escapeNotVerified */ $_htmlName ?>[{{index}}][model_id]" value="" id="models_{{index}}_model_id" data-form-part="category_form" />'
+ '<input data-form-part="category_form" class="<?= /* @escapeNotVerified */ $_htmlClass ?> required-entry" type="text" name="<?= /* @escapeNotVerified */ $_htmlName ?>[{{index}}][model_name]" value="" id="models_{{index}}_model_name" /></td>'
+ '<td><input data-form-part="category_form" class="<?= /* @escapeNotVerified */ $_htmlClass ?> required-sku" type="text" name="<?= /* @escapeNotVerified */ $_htmlName ?>[{{index}}][sku_list]" value="" id="models_{{index}}_sku_list" /></td>'
// + '<td><input data-form-part="category_form" class="<?= /* @escapeNotVerified */ $_htmlClass ?> required-entry" type="file" name="<?= /* @escapeNotVerified */ $_htmlName ?>[{{index}}][image]" value="" id="models_{{index}}_image" /></td>'
+ '<td class="last"><input data-form-part="category_form" type="hidden" name="<?= /* @escapeNotVerified */ $_htmlName ?>[{{index}}][delete]" class="delete" value="" id="models_{{index}}_delete" />'
+ '<button title="<?= /* @escapeNotVerified */ $block->escapeHtml(__('Delete Model')) ?>" type="button" class="scalable delete icon-btn delete-product-option" id="models_{{index}}_delete_button" onclick="return modelControl.deleteItem(event);">'
+ '<span><span><span><?= /* @escapeNotVerified */ __("Delete") ?></span></span></span></button></td>'
+ '</tr>';
var modelControl = {
template: new Template(modelRowTemplate, new RegExp('(^|.|\r|\n)({{\s*(\w+)\s*}})', "")),
itemsCount: 0,
addItem: function () {
var data = {
model_id: '',
model_name: '',
sku_list: '',
image: '',
index: this.itemsCount++
};
data.model_id = arguments[0];
data.model_name = arguments[1];
data.sku_list = arguments[2];
data.image = arguments[3];
Element.insert($('<?= /* @escapeNotVerified */ $_htmlId ?>_container'), {
bottom: this.template.evaluate(data)
});
if (data.model_id) {
$('models_' + data.index + '_model_id').value = data.model_id;
}
if (data.model_name) {
$('models_' + data.index + '_model_name').value = data.model_name;
}
if (data.sku_list) {
$('models_' + data.index + '_sku_list').value = data.sku_list;
}
// if (data.image) {
// $('models_' + data.index + '_image').value = data.image;
// }
},
deleteItem: function (event) {
var tr = Event.findElement(event, 'tr');
if (tr) {
Element.select(tr, '.delete').each(function (elem) {
elem.value = '1'
});
Element.select(tr, ['input', 'select']).each(function (elem) {
elem.hide()
});
Element.hide(tr);
Element.addClassName(tr, 'no-display template');
}
return false;
}
};
jQuery("#modelAddButton").on("click", function () {
modelControl.addItem();
});
//if(jQuery("button").hasClass("save")){
// jQuery("#save").on("click", function () {
//
// console.log("sdfsf");
//
// var skuList = $('models_0_sku_list').value.split(',');
// console.log(skuList.length);
// if(skuList.length != 5){
// console.log("eror");
// event.preventDefault();
// jQuery('models_0_sku_list').after('<label for="models_0_sku_list" generated="true" class="mage-error" id="models_0_sku_list-error">sku required</label>');
// }
// });
// jQuery.validator.addMethod('required-sku', function (v) {
// var skuList = $('models_0_sku_list').value.split(',');
// console.log(skuList.length);
// if(skuList.length != 5){
// var result = skuList.length < 4;
// event.preventDefault();
// return !result;
// }
//
// }, jQuery.mage.__('Please enter your comment.'));
// jQuery("button[data-form-role="save"]").on("click", function () {
// console.log('sdf');
// });
<?php
if ($block->getCategoryModels()) :
foreach ($block->getCategoryModels() as $model)://echo "<pre>";print_r($model->getData());
?>
modelControl.addItem('<?php echo $model->getId() ?>', '<?php echo $model->getModelName() ?>', '<?php echo $model->getSkuList() ?>', '<?php echo $model->getImage() ?>');
<?php
endforeach;
endif;
?>
window.modelControl = modelControl;
});
</script>
</div>
How to do that ...
Thanks.
magento2.2.2 php-7.1
magento2.2.2 php-7.1
asked 1 min ago
Mano MMano M
979219
979219
add a comment |
add a comment |
0
active
oldest
votes
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
});
}
});
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266031%2fmagento2-add-validation-in-dynamic-text-box%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
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
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f266031%2fmagento2-add-validation-in-dynamic-text-box%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
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