Retrieve Setting Value from Field

I have a scenario in which a custom field may include optional values that can be applied using a setting.

When this setting is in use, I need to also apply CSS to a separate DOM element based on the specific value applied to the field.

I know conditions within a resource can be set if / when a particular field is used, but is it possible to retrieve the value of a field setting, if / when in use?

Something like:
[[cbHasField?
&field=ID OF FIELD
&setting=NAME OF SETTING
&settingValue=SETTING VALUE
]]

Easy to solve:

[[!cbGetFieldContent?
&field=`field ID`
&fieldSettingFilter=`setting name`
&tpl=`my-tpl`
]]

my-tpl: [[+setting name]]

1 Like