Stringfunctions+ | Formula FIRSTPARENTVAL

Description

This formula retrieves a value from the first parent element of the current context object at which a value is maintained.

In addition, unlike PARENTVAL, this function returns a value only if the attribute exists on the parent object, regardless of whether a default value has been specified or not.

Formula(s)

PHP
{=FIRSTPARENTVAL(Attribute;Formatted;Retrieve from current context object first)}
{=FIRSTPARENTVAL(Attribute;Medium;Retrieve from current context object first)}

Result

  • String

Parameters

Parameter
Content
Format
Default value
Explanation

Attribute

Attribute ID or attribute name

Attribute ID: Integer

Attribute name: String

 

 

Formatted

TRUE or FALSE

Boolean

TRUE

TRUE: Formatted

FALSE: Unformatted

Retrieve from current context object first

TRUE or FALSE

Boolean

FALSE

TRUE: The value of the current context object is retrieved first

Medium

Medium for which the value is to be returned

String

MEDIUM_NONE

Possible values:

  • MEDIUM_NONE

  • MEDIUM_TEXT

  • MEDIUM_HTML

  • MEDIUM_EXPORT

  • MEDIUM_EDITOR

  • MEDIUM_TRANSLATIONMANAGER

  • MEDIUM_MASSEDITOR

  • MEDIUM_API

  • MEDIUM_TABLEAPI

This parameter depends on the CSType implementation. Not every CSType supports all media.