onMatch JS Function for list of countries
We worked with a third party for form shortening and now we're at a stage where we need to modify their existing code they setup for us to include an onMatch function for a list of countries, where as if country is a match for any of the ones in our list, the form should expand regardless. They provided us with one country example, but we need to expand it to include others. Does anyone know how we can modify this part of the code so we can include more than just Italy?
if (!window._zi_fc) {window._zi_fc = {}}
window._zi_fc.onMatch = (data) => {
if (data.country == 'Italy') {
console.log('User located in Italy!');