In a layer popup in Experience Builder, I would like a user to be able to click a button (within the popup ideally) to download a vcard (vcf), or otherwise a dynamically generated file (pdf for example) with attributes of that specific feature (for example, company name, email, industry). How can I make something like this work in Experience Builder?
I should specify that the main issue seems to be that the <a href="#"> is handled differently (specifically the ability to use the "data:" tag before #text) between WAB and ExB and that seems to be the main issue. This wasn't an issue in WAB.
Example <a href>
a href="data:text/vcard;charset=UTF-8,{expression/expr4}" target="_blank" download="contact.vcf"
Expression 4 of course, returning the attributes and vcard syntax (e.g):
return 'BEGIN:VCARD\nVERSION:2.1\nN:' + $feature.Name + 'END:VCARD';