Visibility of a field in main form and inline/bubble-editing

Visibility of a field in main form and inline/bubble-editing

leprimoleprimo Posts: 25Questions: 4Answers: 0

Is there a way to suppress a field in the main form, but it can still be edited in the table using inline / bubble editing?

This question has an accepted answers - jump to answer

Answers

  • leprimoleprimo Posts: 25Questions: 4Answers: 0

    I was looking for a function as explained below, but I didn't find anything suitable.

    editor.on( 'open', function ( e, type ) {
    
    If(...MAINFORM...){myfield.css('display', 'none');}
           
        } )
    
  • colincolin Posts: 15,143Questions: 1Answers: 2,586
    Answer ✓

    You could use the preOpen to do that - something like this.

    Colin

  • leprimoleprimo Posts: 25Questions: 4Answers: 0

    Hi Colin,
    the link to preOpen ends up in 404 ... but editor.on ('open`) solves the problem, as in your example. I've been looking for this solution for hours, thanks!
    Dirk

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    Ah, yep, sorry, I meant preOpen. Glad to hear all sorted.

    Colin

This discussion has been closed.