Trying to access attribute from form submission


#1

If I manually type in a form submission id it will work, but if I try to use the keyword such as below I cannot get it to work. Assuming form_submission_id equalled “1234” I’d effectively want the below to translate from:

%globals_asset_data_attributes:{form_submission_id}%

to

%globals_asset_data_attributes:1234%

I thought using curly braces would allow me to use the keyword as I wanted, but instead it just prints the text literally.


(Nic Hubbard) #2

Where in Matrix are you trying to access the form submission attributes? Do you need to be using a globals keyword?


(Iain Simmons) #3

Hi @abcsu,

You probably want

%form_submission_id^as_asset:asset_data_attributes%

… but depending on what you’re trying to do, that still might not work.

Can you please let us know where you are using this keyword, what you are trying to achieve, and the expected output?

Cheers,
iain