example error

example error

Bindrid2Bindrid2 Posts: 79Questions: 4Answers: 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' );
  }
} );

Replies

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

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

    C

This discussion has been closed.