Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to use Get(LayoutName) in a Calculation Field?

Featured Replies

Hello,

 

Is there a way to use Get(LayoutName) in a Calculation Field? Cause when I tried it, I get a null value. Is there any other alternatives?

 

Thank you!

Get( layoutName ) is fine.

No alternative required.

But as with all questions here, it is important to give a much more complete description of what you are doing and why.

 

 

Is there a way to use Get(LayoutName) in a Calculation Field? 

 

It's a really bad idea, no matter what you have in mind.  Don't bury business logic at the field definition level.  If you need something evaluated based on where the user is (layout), do it i a script.

  • Author

Hi,

 

This is not my work, but it seems that there are two fields that were made specifically for conditional formatting. So these two fields are based on an original field which is all raw text data.

 

So the problem for me now is that one of these two formated fields are now used in another layout. So the format field has to be readjusted again for the layout.

 

But like I said, I tried Get(LayoutName) in the Calculation Field and it does not work. It returns a null value.

Get(LayoutName) in the Calculation Field and it does not work. It returns a null value.

 

Make sure the calculation's result type is set to Text and that the calculation field is unstored.

 

 

So the problem for me now is that one of these two formated fields are now used in another layout. So the format field has to be readjusted again for the layout.

 

No idea what you mean by that.

That just isn't true. You're leaving out a lot of detail. Can you supply a clone of the file or PDF of the field definitions or a DDR?

That just isn't true.

 

Please be more specific - especially if you must be rude.

Johndoe: it is not true that the function get( layoutName ) does not work.

 

The function works fine and has no bugs.

 

There may be problems with HOW you are using it.

 

As mentioned by Wim, there are significant questions about whether you should be using it as part of a field definition.

 

If used within a field calc, it must be (as Comment mentions) text result; unstored.

 

But your statements are still quite vague, so it will be helpful to supply a lot more detail.

You mention something about conditional formatting but again - we cannot yet see how that applies.

  • Author

Oh, the calculation is just Get(LayoutName), there's nothing else in it.

I wanted to make sure it returned a value before I actually used it.

 

And the problem was because I was storing it, so I checked the Do not store and it works now. Thank you.

Is there any other alternatives?

 

Layout Mode >> Insert >> Other Symbol... >> LayoutName

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.