跑道计算 - 如何获取关系字段中所选条目的来源?

Podio calculations - how to get the source of the entry chosen in a relationship field?

假设我有一个关系字段 H,用户可以在其中选择从三个不同应用程序(X 应用程序、Y 应用程序、Z 应用程序)中的任何一个添加单个条目。

我想在计算字段中使用此信息来计算结果,具体取决于信息来自哪个应用程序,而不是传入条目的值。

这可能吗?

如果始终只允许一个相关项目,您可以使用 .length。在这种情况下,它计算相关项目的数量

var $AppX = @TitleFieldAppX.length;
var $AppX = @TitleFieldAppY.length;
var $AppZ = @TitleFieldAppZ.length;
AppX == 1 ? "Calculate this" : AppY == 1 ? "Calculate that" ? AppZ == 1 : "Calculate else" : null

如果 App x 中的项目相关则执行此计算,如果来自 App Y .....