Project

General

Profile

Actions

Feature proposal #7662

closed

Implement support for subtituting in field group row fields

Added by krileon over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
31 July 2019
Due date:
% Done:

100%

Estimated time:

Description

This needs to allow the [FIELD_NAME_INDEX_FIELD_NAME] substitution syntax to function. Example as follows.

[cb_fieldgroup_0_cb_text]

This should substitute in the [cb_text] value of the first row (in this case 0 index) of the field group field cb_fieldgroup. It needs to also handle missing indexes. So if you substitute in [cb_fieldgroup_3_cb_text] and the 4th row doesn't even exist it should just return an empty value.

Actions #1

Updated by krileon over 4 years ago

Currently the following syntax works, but that's hard to determine based off normal substitution syntax usage and if a row doesn't exist it just returns the substitution string instead of empty value.

[_cb_fieldgroup__0__cb_text]

Actions #2

Updated by krileon over 4 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

The following syntax all work fine now.

[FIELD_NAME_INDEX_FIELD_NAME]
[FIELD_NAME__INDEX__FIELD_NAME]
[_FIELD_NAME_INDEX_FIELD_NAME]
[_FIELD_NAME__INDEX__FIELD_NAME]

Since this works directly through getFields when calling a specific field by name it will work for API calls (again as long as name is used and not field id) and substitutions. If an index does not exist it will return empty value so it's safe to use against non-existing rows.

Actions #3

Updated by krileon over 4 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF