Generate .vcf cards from a record

Hi, anyone knows how can I make Knack create a contact card (.vcf) from a record? We have a contact base in an app and we'd like to have users be able to export contacts to their mobile phone. I think that would be useful for a number of apps.

You might be able use regex as I have done in this example

https://support.knack.com/hc/en-us/community/posts/360066094832-How-to-create-a-link-button-to-create-event-in-google-Calendar-rev-2-

Here is a link to the format spec 

https://www.w3.org/2002/12/cal/vcard-notes.html

 

I saved this for example as test .vcf and it imported fine

begin:vcard
version:3.0
fn;charset=utf-8:John Maguire
n;charset=utf-8:Maguire;John;;;
tel;charset=utf-8;type=cell:+353 87 123 456
end:vcard