1
0
-1

I would like to add a button which has one behaviour for the published form (save), and another behaviour in maestro's preview (update a field value) panel.

    CommentAdd your comment...

    2 answers

    1.  
      2
      1
      0

      Sasha,

      "Resource.preview" will return true when the form is in preview mode.

      Cheers,

      Dave.

        CommentAdd your comment...
      1.  
        1
        0
        -1

        Try the following:

        var objLib = Resource.getFormView();
        if(objLib.isPreview==true){
        console.log("In preview mode")
        }else{
        console.log("Not preview mode")
        }

          CommentAdd your comment...