example error

example error

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

Replies

  • colincolin Posts: 3,983Questions: 0Answers: 704

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

    C

Sign In or Register to comment.