This question has been flagged

Hi, I created a new custom widget extended from AbstractField, using custom template. I want to save value of this field in db, I am using _setValue() but it is not saving.
would you please guide me how to save that value.
here is the image
https://t.co/IXF4i0yEbZ
https://twitter.com/herawais/status/1303665356490375168

Avatar
Discard

Hello,

i've got the same problem!

Do you found a solution ?

Author

No i didnt found any solution. i am sorry

Best Answer

Hello Muhammad Awais

Try to add this code in your js file

_onChange:function(ev){
     this._setValue('your_value_in_here','UPDATE');
 },

Avatar
Discard