Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 81971

Setting default value for Dynamically added fields in Editor form

$
0
0

Hi
I am trying to add some fields dynamically to the editor form and it works correctly for new entries like below

editor.add({
  'label' : ctf.field_name,
  'name'  : name
});

But when I try and add / update value for the same field like below

editor.field(name).update(ctf.field_value);

I am getting error like

common.js:260 Uncaught TypeError: editor.field(...).update is not a function

BTW, my field name is "ctf.2" if that is the problem.


Viewing all articles
Browse latest Browse all 81971

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>