How to access 'email recipient' field using an asset listing


(Michael Valk) #1

I am trying to create a report that lists the Email Recipient for each Custom Form on our site.

Can I do this using an asset listing?

I have set up a report that uses an asset listing to list the ‘Form Contents’ page for each Custom Form, but I don’t know how to list the Email Recipient field from the Email Options screen. Is there a keyword for this data field?

Matrix Version: 5.3.4.2


(Peter McLeod) #2

Hi

A form contents attribute keyword might work, eg:
%asset_attribute_recipient_emails_format%
Though I’m not sure that you will be able to access it like this.

Alternatively - the JS API - getAttributes method would return the data. You would just need to iterate over each ‘form contents’ asset, and and get the attribute data, then do some formating of what is set for the “recipient_emails_format” key.

Thanks
Peter


(Bart Banda) #3

Yea you could try the JS API method to see what that brings back, the attribute might also be on the Form Contents asset rather than the Custom Form asset, so be mindful of that.

AFAIK there isn’t any keyword to get that value.