Can't connect to Global Custom Parameter

Hello.

I am building out a custom ui in Global Parameters and have this section:

 "siosLayout": {
"type": "group",
"label": "Layout",
"params": {
  "sectionPadding": {
    "type": "dimension",
    "label": "Section",
    "description": "Vertical padding for sections on desktop. Default: 80px. Use in individual top/bottom padding fields.",
    "initial": "80px",
    "isVar": true
  },

I call it with:

{{dc:param:siosLayout.sectionPadding}}

But for some reason it does not connect and pull the data.

Advice is greatly appreciated.

Thanks!

Hey @sprod,

To correctly retrieve the value of your global parameter, try referencing it with either of the following syntaxes:

  • Using global:
    {{dc:global:siosLayout.sectionPadding}}
    
  • Using shorthand g:
    {{dc:g:siosLayout.sectionPadding}}
    

Hi @christian

Thank you for your quick response.

I just tried that as well well but nothing gets pulled through from my Global Parameters.

I even tested with a very simple unit slider but nothing goes through when I wire it up.

I should also mention that the syntax I’ve used is getting pulled from the dynamic data button. It is registering in the system from there, but when I put in the syntax to wire it up, it just doesn’t work.

ADDED UPDATE:

I removed all JSON code from Global Parameters (where it did not work) and I added it into the parameters of the element I am working on, and it worked fine there.

I isolated just this code:

{  "siosLayout": {
"type": "group",
"label": "Layout",
"params": {
  "sectionPadding": {
    "type": "dimension",
    "label": "Section Padding",
    "description": "Vertical padding for sections. Default: 64px",
    "initial": "64px",
    "isVar": true
  }
}   } }

I used this in the field for Top-Padding and it worked fine: {{dc:param:siosLayout.sectionPadding}}

I tried with all the variations: {{dc:p:siosLayout.sectionPadding}} - {{dc:g:siosLayout.sectionPadding}} - {{dc:global:siosLayout.sectionPadding}} and they all worked,but only on the element parameters. Nothing from the Global Parameters worked.

I 'd appreciate your input.

Thank you!