AnsweredAssumed Answered

Add and remove emails though altering model in js

Question asked by Gustav Lindström on Jan 15, 2016
Latest reply on Jan 15, 2016 by Francesca Shiekh

Hi, how can you add and remove email addresses in javascript by preferably altering the model and have the change visible?


I've tried the following but it didn't trigger a gui change like when I do the same with other fields.


this.model.set(key, [{email_address: "", primary_address: true}]);


I also like to remove addresses.


Help would be greatly appreciated.


Best Regards

Gustav Lindström