Cornerstone Component Builder: How to itemLabel with group parameters

How can we use a parameter from the group parameter in the itemLabel?

Our parameters setup:

Component Output:
Screenshot 2023-10-17 194657

Expected output:
“1. // 819 // Test”

We can address the group parameter but not its child parameters.

Looking forward to hearing from you.

Kind regards.

Hello @dasbios,

Thanks for writing in! Please add an initial value for your ID so that it will have something to display.
"initial" : "819"

Best Regards.

Hi @ruenel,

I tried, and there is no difference.

Parameters code:

{
  "event" : {
    "type"   : "group[]",
    "label"  : "Dogodek",
    "itemLabel" : "{{index}}. // {{teacher.id}}",
    "params" : {
      "teacher" : {
        "type"    : "group",
        "label"   : "Učitelj",
        "noPicker" : true,
        "params"   : {
          "id" : {
            "label"   : "ID",
            "type"    : "text",
            "initial" : "007",
            "placeholder" : "819",       
            "height"     : 1,
            "expandable" : true
        	},
          "name" : {
            "label"   : "Priimek Ime",
            "type"    : "text",
            "initial" : "",
            "placeholder" : "",   
            "height"     : 1,
            "expandable" : true
        	}
        }
      }
    }
  }
}

Hello @dasbios,

We have investigated the issue and our developers found out that the list can only accept child items. Regretfully, grandchildren and great-grandchildren are not possible at the moment. We have added this as a feature request instead. We just do not know when this request will be implemented and when it can be released.

Thank you for your understanding.

Hi, @ruenel,

Thank you for looking into it and providing feedback.
Looking forward to the implementation.

Will you post info about the implementation in this thread, or do we have to check on our own?

Kind regards.

PS:
Just for the clarification:
This is the problem only on the Back-End in the field:
"itemLabel" : "{{teacher.id}}",

On the Front-End, we can normally access grandchildren of the Group/List like so:
{{dc:looper:field key="teacher.id"}}

You are most welcome, @Dasbios.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.