Show_if for desktop

Hello everyone,

I would like to include a conditional show_if only if the app is being used from desktop view.  I'm trying using the expression CONTEXT("Host")="Browser" but neither in the app nor in desktop, column is shown.

Basically my problem is that people on field upload invoices as images but people at the office need to upload PDF. I'm trying to show a file column only for desktop users.

Many thanks.

Solved Solved
0 3 375
1 ACCEPTED SOLUTION


@Pirate1 wrote:

  I'm trying using the expression CONTEXT("Host")="Browser" but neither in the app nor in desktop, column is shown.


There are other constraints that could keep a column from displaying.

Other Show_If criteria

  • If a Detail View, the column must have a displayable value.
  • Column must be listed in the View 
  • If a Form View, the column must have a value or be Editable.  If not Editable and blank, it will not show.
  • Probably others I am not thinking of

To help further we will need to know how the view you are having issues in is defined and how the column is defined.

View solution in original post

3 REPLIES 3


@Pirate1 wrote:

  I'm trying using the expression CONTEXT("Host")="Browser" but neither in the app nor in desktop, column is shown.


There are other constraints that could keep a column from displaying.

Other Show_If criteria

  • If a Detail View, the column must have a displayable value.
  • Column must be listed in the View 
  • If a Form View, the column must have a value or be Editable.  If not Editable and blank, it will not show.
  • Probably others I am not thinking of

To help further we will need to know how the view you are having issues in is defined and how the column is defined.

Column type is set to File, editable and with a show_if expression CONTEXT("Host")="Browser" (I even give it a trying setting to server) and is being used on a Form View.

This was marked "Solved".   Did you figure it out? Since it seems the response was after, I am guessing not.

I tried this based on the info you provided and I am not seeing an issue (see images below).  Can you provide images of the column definition and the view definition?  There is likely some configuration you have set that is preventing the showing of the column.

Column definition with Show_If implemented

Screen Shot 2022-10-04 at 5.36.09 PM.png

Desktop view showing Test1 column (this is from new Desktop preview mode)

Screen Shot 2022-10-04 at 5.36.30 PM.png

Capture from phone - column not shown

IMG_DBC8CFF8B108-1.jpeg

 

Top Labels in this Space