How do I hide the "prefix" while keep the column name?

For related columns, I can change the display name, but the same display name is also used as a “prefix” (if that’s the right name for it). Is it possible to keep the display name but hide it in the rest of the column?

Please try the following expressions in the display name of the related columns

  1. In the [Related Courses] column

IF([_ROWNUMBER]>1, " ", “Related Courses”)

  1. In the [Related mentors] column

IF([_ROWNUMBER]>1, " ", “Related mentors”)

1 Like

Like the idea–very clever, so I tried it. It didn’t work, but more importantly, I want the count (number) to display, just want the"Related Course" part to disappear:

These things aren’t essential to the operation of the app, but boy I’d like to make it look nice.

Could you please elaborate what you mean by “it did not work”. It works very well when I tested it. As the screenshot below shows, only heading displays the entire column name and all the rows display only count.

1 Like

I probably did it wrong. The error message is:

Column Name ‘Related enrollments’ in Schema ‘program_Schema’ of Column Type ‘List’ has an invalid show_if constraint ‘=IF([_ROWNUMBER]>1, " ", “R Courses”)’.

(‘R Course’ is just for testing purposes.)

Oh okay. As I clearly mentioned, you need to use the expression in the display name property of the column.

In your first post of this thread you had also referred the word display name, so I was almost sure that I do not need to further reemphasize it like making it bold etc.

2 Likes

I thought that was purely a text field! Thank you!!!

2 Likes

Generally wherever you see the flask icon in a field setting ( be it in column, action, view, slice, localizations automation settings), it should accept expressions.

2 Likes

@Suvrutt_Gurjar Need your help to fine tune the conditional expression. The expression works great in tables, but it also removes the heading for inline tables, so now, eg, nobody knows what the number “12” is for:

So I attempted to modify the expressions (still trying to make sense how the expressions work):

IF(
AND(
([_ROWNUMBER]<1), 
"#view<>enrollment_Inline"),
" ", "All Time"
)

Got an error: Condition AND(([_ROWNUMBER] < 1), “#view<>enrollment_Inline”) has an invalid structure: subexpressions must be Yes/No conditions.

And this:

IFS(
    ("#view<>enrollment_Inline"),
    "All Time",
    ([_ROWNUMBER]<1),
    " "
)

Error: IFS function is used incorrectly:Inputs to IFS() must be condition-value pairs. Input 1 is not a condition.

Please post the name of the detail view that contains the inline view where you want to show the column heading.

In general, you would need to use CONTEXT(“View”) function.

1 Like