Find Jobs
Hire Freelancers

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

₹100-400 INR / hour

已完成
已发布将近 6 年前

₹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">
项目 ID: 17210098

关于此项目

6提案
远程项目
活跃6 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
₹500 INR 在40天之内
5.0 (8条评论)
3.6
3.6
6威客以平均价₹504 INR/小时来参与此工作竞价
用户头像
I'm expert. can I help you.
₹556 INR 在1天之内
4.8 (76条评论)
6.0
6.0

关于客户

INDIA的国旗
Sambalpur, India
5.0
3
付款方式已验证
会员自6月 1, 2018起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。