example error

example error

Bindrid2Bindrid2 Posts: 72Questions: 0Answers: 12

The example on https://editor.datatables.net/reference/event/initSubmit as shown below has one equal sign in the "if" statement.

editor.on( 'initSubmit', function (e, action) {
  if ( editor.field( 'section' ).val() = 31 ) {
    editor.field( 'rank' ).val( 'Undisclosed' );
} );


  • colincolin Posts: 4,693Questions: 0Answers: 823

    Ah good spot, fixing now. It'll will be pushed the next time the website is updated...


Sign In or Register to comment.