Feature proposal #7662
closed
Implement support for subtituting in field group row fields
Added by krileon over 5 years ago.
Updated over 5 years ago.
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.
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]
- 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.
- Status changed from Resolved to Closed
Also available in: Atom
PDF