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,143Questions: 1Answers: 2,586

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

    C

This discussion has been closed.