Suoritettu

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">

Taidot: HTML, Javascript, jQuery / Prototype, Magento

Näytä lisää: 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

Tietoa työnantajasta:
( 3 arvostelua ) Sambalpur, India

Projektin tunnus: #17210098

Myönnetty käyttäjälle:

₹500 INR / tunti
(8 Arvostelua)
3.6

6 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_18% %project_currencyDetails_sign_sub_19%/tunti tähän työhön

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 Lisää

₹444 INR / tunti
(198 arvostelua)
7.0
gursukh

I'm expert. can I help you.

₹556 INR / tunti
(76 arvostelua)
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 Lisää

₹245 INR / tunti
(3 arvostelua)
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 Lisää

₹277 INR / tunti
(3 arvostelua)
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] Lisää

₹1000 INR / tunti
(2 arvostelua)
0.2