Find Jobs
Hire Freelancers

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

₹100-400 INR / hour

Completed
Posted over 5 years ago

₹100-400 INR / hour

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">
Project ID: 17210098

About the project

6 proposals
Remote project
Active 6 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
₹500 INR in 40 days
5.0 (8 reviews)
3.6
3.6
6 freelancers are bidding on average ₹504 INR/hour for this job
User Avatar
I'm expert. can I help you.
₹556 INR in 1 day
4.8 (76 reviews)
6.0
6.0

About the client

Flag of INDIA
Sambalpur, India
5.0
3
Payment method verified
Member since Jun 1, 2018

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.