Tamamlanmış

Magento2 copied value using Jquery, but getting error like this is a required field

I have added a custom field for example - artist price, the value of which is being copied to price field but when saving the form, I am still getting error this is a required field

The code I am using is like:

$("[name='product[artist_price]']").change(function() {

$("[name='product[price]']").val($(this).val());

});

what I understand is that since the value is being copied and not filled using the keyboard, it assumes that the field is still empty or something else I am not sure.

also after testing I want to hide the field product[price], so how I can achieve this without getting the validation error.

he complete html code for the target field is like this:

<input class="admin__control-text" data-bind="

event: {change: userChanges},

value: value,

hasFocus: focused,

valueUpdate: valueUpdate,

attr: {

name: inputName,

placeholder: placeholder,

'aria-describedby': noticeId,

id: uid,

disabled: disabled

}" name="product[price]" aria-describedby="notice-G2FT2Q2" id="G2FT2Q2" type="text">

Beceriler: HTML, Javascript, jQuery / Prototype, Magento

Daha fazlasını gör: hide show option value combobox using jquery, face detection using jquery error, ajax modal popup using jquery, php, html, website design, magento, wordpress, shopping carts, magento developer, e-commerce, modal web popups using jquery, popup using jquery, jquery getting screen resolution, ajax call using jquery example j2ee, find text find range using jquery, recalculate cart using jquery, url preview using jquery, call jsp server method using jquery, finding rms average value using integration

İşveren Hakkında:
( 3 değerlendirme ) Sambalpur, India

Proje NO: #17210098

Seçilen:

₹500 INR / saat
(8 Değerlendirme)
3.6

Bu iş için 6 freelancer ortalamada ₹504/saat teklif veriyor

zyeloncomputech

Hi sir, Thank you for giving opportunity for biding... we have gone through your requirements and we can do fix your Magento 2 error according to your exact requirements. Please Before Awarding this project t Daha Fazla

₹444 INR / saat
(198 Değerlendirme)
7.0
gursukh

I'm expert. can I help you.

₹556 INR / saat
(76 Değerlendirme)
6.0
Tanviallcad

Dear Project Owner, This is Priyanka able to do your job, As we have number of software engineers at our development center on all the developement platforms for more about us please visit [login to view URL] or f Daha Fazla

₹245 INR / saat
(3 Değerlendirme)
2.6
nikunjv9737

i will complete your fully dynamic website with mobile responsive,payment integration,email integration,google analytic,popup advertisement in your website (development and testing). i do working 4-5 E-commerce site Daha Fazla

₹277 INR / saat
(3 Değerlendirme)
1.0
priyakanjiya9

Hello , Hope you are doing great !! We have expertise in the similar field and are capable to provide you an assured assistance. You can read more about our services at: [login to view URL] Daha Fazla

₹1000 INR / saat
(2 Değerlendirme)
0.2