Hi @russian-dima . In the example I mentioned before, you can build a QR Code of some types. There are some functions in the code like these:
const changePhone = () => {
const value = $w ( ‘#inputPhone’ ). value ;
**if** ( hasContent ( value )) {
updateImage ({
value : `tel: ${ value }`,
});
}
};
const changeSMS = () => {
const phone = $w ( ‘#inputSMSPhone’ ). value ;
const message = $w ( ‘#textBoxSMSText’ ). value ;
**if** ( hasContent ( phone )) {
updateImage ({
value : `SMSTO: ${ phone }:${ message }`,
});
}
};
const changeWifi = () => {
const ssid = $w ( ‘#inputSSIDWIFI’ ). value ;
const encryption = $w ( ‘#dropdownAuthWIFI’ ). value ;
const password = $w ( ‘#inputPasswordWIFI’ ). value ;
**if** ( hasContent ( ssid )) {
updateImage ({
value : `WIFI:S: ${ ssid } ;T: ${ encryption } ;P: ${ password } ;;` ,
});
}
};
const changeEmail = () => {
const email = $w ( ‘#inputEmail’ ). value ;
const emailSubject = $w ( ‘#inputEmailSubject’ ). value ? $w ( ‘#inputEmailSubject’ ). value : ‘’ ;
const emailBody = $w ( ‘#textBoxEmailBody’ ). value ? $w ( ‘#textBoxEmailBody’ ). value : ‘’ ;
**if** ( hasContent ( email )) {
updateImage ({
value : `mailto: ${ email } ?subject= ${ emailSubject } &body= ${ emailBody }`,
});
}
};
I would like to now if I can use the same npm package to generate a QR Code (Vcard) and how.