Problems with image formulas

Hey Guys,

Im having a problem with 1 of my image columns.

I have an drop down where the user can select a predetermined image, or in this same dropdown they can select custom. When they select custom they can take there own image.

I have a VIRTUAL image column that is getting the predetermined image which is referenced from the drop down.

But, when the user selects โ€œCustomโ€ My image column become visible so the user can take there own picture, if it isnโ€™t visible I have a formula so it takes the value from the VIRTUAL column.

Problem is, My image column wonโ€™t display even when I have it to show if user selects visible if I have this formula in the formula column, it will show if I donโ€™t have a formula.

IF([Type] = โ€œCustomโ€, โ€œโ€, [Type].[Image])

Also Tried IF([Type] = โ€œCustomโ€, [_this], [Type].[Image]) but saying it cant find its own column.
Also Tried IF([Type] = โ€œCustomโ€, [Image], [Type].[Image])

My image references are coming from a different table not this one.

Solved Solved
0 10 537
1 ACCEPTED SOLUTION

Update, I have a working Solution. That is coming with other problems for some reason.

My solution.

  1. Take away all formulas from the image column.
  2. Only display image column if โ€œCustomโ€ is selected.
  3. Create an action Called Set Image. It sets the [Image] column from the [Image from Type] Column.
  4. Create a workflow which fires every time a row is added. This workflow is set to trigger the action in point 3 only if [Type] < > โ€œCustomโ€

![Screen Shot 2020-01-07 at 8.39.55 PM|407x500](upload://IBhU

S9zKFGyKMoIiQfIAttuKDJ.png)

The problem Im having now is the images are not showing up in my deck views, only in my detail views. The main Image for my views is set to Image. My detail views are working though.??

Thoughts?

View solution in original post

10 REPLIES 10

Bahbus
New Member

You canโ€™t have an App Formula that allows for automatic AND manual updating. If there is an App Formula, the user wonโ€™t be able to upload a custom picture. You could use Initial Value to assign a default image, but you wonโ€™t be able to make it dependant on [Type]. It would still be user editable to their own image though.

How would I go about making something dependant on type, I have my virtual column that get the image selected from type, and my image column where a user can take there own image if they they select custom.

I need everything to go to 1 column as whatever they choose I need it to appear on the header of my Views.

Any ideas?

Hmm, off the top of my head, I would probably implement two real image columns. One that is visible for โ€œCustomโ€ and one that is visible for the other options. The Custom one would have no app formula, and the other one would compute automatically. And then I would use a Virtual image column to pull from either of those image columns so you can have something to set in your views.

There might be an easier way to do it, but thatโ€™s the first method that comes to mind.

Update, I have a working Solution. That is coming with other problems for some reason.

My solution.

  1. Take away all formulas from the image column.
  2. Only display image column if โ€œCustomโ€ is selected.
  3. Create an action Called Set Image. It sets the [Image] column from the [Image from Type] Column.
  4. Create a workflow which fires every time a row is added. This workflow is set to trigger the action in point 3 only if [Type] < > โ€œCustomโ€

![Screen Shot 2020-01-07 at 8.39.55 PM|407x500](upload://IBhU

S9zKFGyKMoIiQfIAttuKDJ.png)

The problem Im having now is the images are not showing up in my deck views, only in my detail views. The main Image for my views is set to Image. My detail views are working though.??

Thoughts?

True, but you could instead use an Initial value expression, a Reset on edit? expression, and an Editable? expression to achieve the desired result.

Can you explain the Reset on edit expression?

I have this working but wondering if there any more efficient cleaner ways to go about it.

When Reset on edit? is set to ON, the columnโ€™s Initial value expression will used to generate a new value for the column each time the row is modified in some way (e.g., when the row is saved from a form view, a column value is changed with Quick Edit, or an action modifies the row).

When Reset on edit? is given an expression, that expression decides whether the column value should be recalculated for any given modification of the row. Note that the Reset on edit? expression does not provide the new column value; instead, it simply indicates whether the column value should or should not be recalculated that particular time.

The Initial value expression (if it exists) is always used to give the column a value when the row is created, regardless of the Reset on edit? setting.

Thank you. Im sure this will become useful in the feature.
Great explanation.

Removed

Top Labels in this Space