내 커뮤니티 업적 표시줄을 확대합니다.

Submissions are now open for the 2026 Adobe Experience Maker Awards

Mark Solution

활동이 없어 이 대화는 잠겼습니다. 새 게시물을 작성해 주세요.

해결됨

Adding data elements to msbox.js via mboxParameters() function

Avatar

Level 1

I want to load some data elements into my mbox.js so that I can access them from every mbox. 

The satellite calls are
'pageName='+_satellite.getDataElement('PageName')

'formType='+_satellite.getDataElement('FormType')

The interface doesn't provide a syntax for multiple parameters.

[img]mbox_js_edit_interface.JPG[/img]

1 채택된 해결책 개

Avatar

정확한 답변 작성자:
Level 1

Hi Dean,

The way to pass in multiple key/value pairs is to separate them with an & symbol. 

So yours would be 

return 'pageName='+_satellite.getDataElement('PageName') + '&' + 'formType='+_satellite.getDataElement('FormType');

The best way to test this would be to add this code to your mbox.js file then download the newly created file and use an override in a tool like Charles with MapLocal to make sure your parameters are coming in as you expected.

Hope that helps.

Eric

원본 게시물의 솔루션 보기

2 답변 개

Avatar

Level 1

Any guess? I'm fine with adding it through the interface or directly into the javascript.

Avatar

정확한 답변 작성자:
Level 1

Hi Dean,

The way to pass in multiple key/value pairs is to separate them with an & symbol. 

So yours would be 

return 'pageName='+_satellite.getDataElement('PageName') + '&' + 'formType='+_satellite.getDataElement('FormType');

The best way to test this would be to add this code to your mbox.js file then download the newly created file and use an override in a tool like Charles with MapLocal to make sure your parameters are coming in as you expected.

Hope that helps.

Eric