1
0
-1

Hi,

I'm working with a Composer form and need to update the visibility of the 'function bar'.

At the moment it has the following code for the visibility rule:

return sfc.isFormMode("");


But that does not seem valid, as I expect the 'formMode' parameter to be a value, rather than blank string "".

What options are available for the 'formMode'?

Thanks

Mark

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      Hi Mark

      The form mode holds the name of the currently showing modal page.

      A blank form mode means that no modal pages are currently being shown.

      So the visibility rule is currently saying hide the function bar when a modal page is being shown.

      David

      1. Mark Murray

        Hi David,

        thanks for that explanation.

        I'll have to explore further why it is set that way, but at least I know what I'm working with now.

        Thanks

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

      Hi Mark,

      I use  return (! sfc.isReceipt()).   

      Cheers

      Doug O

        CommentAdd your comment...