{"id":1064,"date":"2022-10-12T09:00:00","date_gmt":"2022-10-12T15:00:00","guid":{"rendered":"https:\/\/processprimer.com\/?p=1064"},"modified":"2026-08-05T17:15:41","modified_gmt":"2026-08-05T23:15:41","slug":"how-to-use-decision-objects-within-a-process-map","status":"publish","type":"post","link":"https:\/\/processprimer.com\/blog\/how-to-use-decision-objects-within-a-process-map\/","title":{"rendered":"How to Use Decision Objects Within a Process Map"},"content":{"rendered":"\n<p>So you&#8217;ve built your basic linear process and you&#8217;re feeling good about it.<\/p>\n\n\n\n<p>You&#8217;ve been able to map out the <span style=\"color:#000000\" class=\"tadv-color\">most efficient way to take the trash,<\/span> you&#8217;ve <strong><span style=\"color:#cf2e2e\" class=\"tadv-color\">shown grandma how to install an Iphone app in 3 easy and visually-appealing steps<\/span><\/strong> and you bedazzle your coworkers in the lunch room with process maps on microwave reheating and loading the dishwasher.<\/p>\n\n\n\n<p>But then&#8230;you run into an issue! Someone has a question (the nerve!) deserving of a &#8220;yes&#8221; or &#8220;no&#8221; answer. What do you do? What if a decision needs to be made and it&#8217;s no longer a linear, &#8220;follow steps 1 to 10&#8221; process? Can you simply ask the user not to ask questions or is that &#8220;frowned upon&#8221; in the office? \ud83d\ude02<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span style=\"color:#ff6900\" class=\"tadv-color\">Fear not, process guru. There is a solution and it&#8217;s in the form of a diamond.<\/span><\/h3>\n\n\n\n<p><span style=\"color:#000000\" class=\"tadv-color\">Here&#8217;s a short video example on how to use the diamond object for your process workflow decision steps:<\/span><\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<div class=\"responsive-embed widescreen\"><iframe loading=\"lazy\" title=\"Using Decision Objects in a Process Workflow\" width=\"1000\" height=\"563\" src=\"https:\/\/www.youtube.com\/embed\/iiQ64qlBP_I?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/div>\n<\/div><\/figure>\n\n\n\n<p>The process mapping decision object, also known in BPMN (Business Process Model and Notation) language as the &#8220;exclusive gateway&#8221; is your solution. <strong><em>Diamonds aren&#8217;t only a girls&#8217;s best friend.<\/em><\/strong> Process people like them too!<\/p>\n\n\n\n<p>Using BPMN language, you&#8217;ll use a diamond with an &#8220;X&#8221; in it, like this:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"123\" height=\"109\" src=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2022\/10\/a184dc95-a190-45e9-af15-fc200e2a39c1.png\" alt=\"\" class=\"wp-image-4133\"\/><\/figure>\n<\/div>\n\n\n<p>If you&#8217;re not planning on using BPMN, let&#8217;s keep it simple and just build a process workflow. We&#8217;ll still use a diamond but we won&#8217;t bother putting an &#8220;X&#8221; in it. We&#8217;ll just use a label instead to make it obvious that it&#8217;s a decision step. Here are a few examples on how you might want to label it:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-medium\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"115\" src=\"https:\/\/processprimer.com\/wp-content\/uploads\/2020\/11\/image-34-300x115.png\" alt=\"\" class=\"wp-image-1070\" srcset=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2020\/11\/image-34-300x115.png 300w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2020\/11\/image-34-768x294.png 768w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2020\/11\/image-34.png 832w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/figure>\n<\/div>\n\n\n<p><br>I tend to place the text label within the diamond unless there are too many words. I may then place it outside the diamond, under or above the object, paying attention to which location best avoids covering decision outcome connector lines.<\/p>\n\n\n\n<p>Let&#8217;s put this diamond object to use with an example. Mikey likes cereal. Mikey really likes Life cereal. He eats it every day at work and puts his bowl and spoon into the dishwasher. What if the process is to load the dishwasher but then <strong>only run the dishwasher when it is full<\/strong>? <\/p>\n\n\n\n<p>Here is an example of how you might build that process workflow:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"213\" src=\"https:\/\/processprimer.com\/wp-content\/uploads\/2020\/11\/image-35-1024x213.png\" alt=\"\" class=\"wp-image-1079\" srcset=\"https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2020\/11\/image-35-1024x213.png 1024w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2020\/11\/image-35-300x63.png 300w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2020\/11\/image-35-768x160.png 768w, https:\/\/processprimer.com\/blog\/wp-content\/uploads\/2020\/11\/image-35.png 1084w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\">That&#8217;s a simple yes\/no scenario and it will get you through the majority of decision steps in a basic process. <\/h3>\n\n\n\n<p>If there are more decision steps, add more diamond objects. <\/p>\n\n\n\n<p>However, you may also run into more complex scenarios:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>what if two paths are supposed to be followed at the same time (in parallel), not just one?<\/li>\n\n\n\n<li>what if the decision has 4 outcomes and not only 2?<\/li>\n\n\n\n<li>what if there are 3 possible outcomes and they are not mutually exclusive? Maybe after the decision step, the user needs to follow outcome A <strong><em>and<\/em><\/strong> outcome C. Then what do you do?<\/li>\n<\/ul>\n\n\n\n<p>These are all valid and real scenarios and there is more than one way to accommodate them. If you have a specific scenario you&#8217;d like to find out more about, leave a comment below or <a href=\"https:\/\/www.processprimer.com\/#contact\">contact us<\/a>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<center>\n<div id=\"mc_embed_shell\">\n      <link href=\"\/\/cdn-images.mailchimp.com\/embedcode\/classic-061523.css\" rel=\"stylesheet\" type=\"text\/css\">\n  <style type=\"text\/css\">\n        #mc_embed_signup{background:#fff; false;clear:left; font:14px Helvetica,Arial,sans-serif; width: 1200px;}\n        \/* Add your own Mailchimp form style overrides in your site stylesheet or in this style block.\n           We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. *\/\n<\/style><style type=\"text\/css\">\n        #mc-embedded-subscribe-form input[type=checkbox]{display: inline; width: auto;margin-right: 10px;}\n#mergeRow-gdpr {margin-top: 20px;}\n#mergeRow-gdpr fieldset label {font-weight: normal;}\n#mc-embedded-subscribe-form .mc_fieldset{border:none;min-height: 0px;padding-bottom:0px;}\n<\/style>\n<div id=\"mc_embed_signup\">\n    <form action=\"https:\/\/processprimer.us19.list-manage.com\/subscribe\/post?u=038e832b4fa1270b3c70c58de&amp;id=d49dd67c2c&amp;v_id=5164&amp;f_id=004ba2e4f0\" method=\"post\" id=\"mc-embedded-subscribe-form\" name=\"mc-embedded-subscribe-form\" class=\"validate\" target=\"_blank\">\n        <div id=\"mc_embed_signup_scroll\"><h2>Subscribe<\/h2>\n            <div class=\"indicates-required\"><span class=\"asterisk\">*<\/span> indicates required<\/div>\n            <div class=\"mc-field-group\"><label for=\"mce-EMAIL\">Email Address <span class=\"asterisk\">*<\/span><\/label><input type=\"email\" name=\"EMAIL\" class=\"required email\" id=\"mce-EMAIL\" required=\"\" value=\"\"><\/div><div id=\"mergeRow-gdpr\" class=\"mergeRow gdpr-mergeRow content__gdprBlock mc-field-group\"><div class=\"content__gdpr\"><label>Consent<\/label><p>By checking the box below, you give Process Primer Consulting Services Ltd. consent to use the information you provide to contact you regarding process improvement tips, ideas, solutions, and services.<\/p><fieldset class=\"mc_fieldset gdprRequired mc-field-group\" name=\"interestgroup_field\"><label class=\"checkbox subfield\" for=\"gdpr74688\"><input type=\"checkbox\" id=\"gdpr_74688\" name=\"gdpr[74688]\" class=\"gdpr\" value=\"Y\"><span>I consent<\/span><\/label><\/fieldset><p>We will never use or share your personal information without your permission. To learn more about how we manage your personal information, please see our Privacy Policy at processprimer.com\/privacy-policy.<\/p><\/div><div class=\"content__gdprLegal\"><p>We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. <a href=\"https:\/\/mailchimp.com\/legal\/terms\">Learn more<\/a> about Mailchimp&#8217;s privacy practices.<\/p><\/div><\/div>\n        <div id=\"mce-responses\" class=\"clear foot\">\n            <div class=\"response\" id=\"mce-error-response\" style=\"display: none;\"><\/div>\n            <div class=\"response\" id=\"mce-success-response\" style=\"display: none;\"><\/div>\n        <\/div>\n    <div aria-hidden=\"true\" style=\"position: absolute; left: -5000px;\">\n        \/* real people should not fill this in and expect good things &#8211; do not remove this or risk form bot signups *\/\n        <input type=\"text\" name=\"b_038e832b4fa1270b3c70c58de_d49dd67c2c\" tabindex=\"-1\" value=\"\">\n    <\/div>\n        <div class=\"optionalParent\">\n            <div class=\"clear foot\">\n                <input type=\"submit\" name=\"subscribe\" id=\"mc-embedded-subscribe\" class=\"button\" value=\"Subscribe\">\n                <p style=\"margin: 0px auto;\"><a href=\"http:\/\/eepurl.com\/LbO0Nyw_ij\" title=\"Mailchimp - email marketing made easy and fun\"><span style=\"display: inline-block; background-color: transparent; border-radius: 4px;\"><img decoding=\"async\" class=\"refferal_badge\" src=\"https:\/\/digitalasset.intuit.com\/render\/content\/dam\/intuit\/mc-fe\/en_us\/images\/intuit-mc-rewards-text-dark.svg\" alt=\"Intuit Mailchimp\" style=\"width: 220px; height: 40px; display: flex; padding: 2px 0px; justify-content: center; align-items: center;\"><\/span><\/a><\/p>\n            <\/div>\n        <\/div>\n    <\/div>\n<\/form>\n<\/div>\n<script type=\"text\/javascript\" src=\"\/\/s3.amazonaws.com\/downloads.mailchimp.com\/js\/mc-validate.js\"><\/script><script type=\"text\/javascript\">(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[0]='EMAIL';ftypes[0]='email';fnames[1]='FNAME';ftypes[1]='text';fnames[2]='LNAME';ftypes[2]='text';fnames[3]='ADDRESS';ftypes[3]='address';}(jQuery));var $mcj = jQuery.noConflict(true);\n    \/\/ SMS Phone Multi-Country Functionality\n    if(!window.MC) {\n      window.MC = {};\n    }\n    window.MC.smsPhoneData = {\n      defaultCountryCode: 'CA',\n      programs: [],\n      smsProgramDataCountryNames: []\n    };\n\n    function getCountryUnicodeFlag(countryCode) {\n       return countryCode.toUpperCase().replace(\/.\/g, (char) => String.fromCodePoint(char.charCodeAt(0) + 127397))\n    };\n\n    \/\/ HTML sanitization function to prevent XSS\n    function sanitizeHtml(str) {\n      if (typeof str !== 'string') return '';\n      return str\n        .replace(\/&\/g, '&amp;')\n        .replace(\/<\/g, '&lt;')\n        .replace(\/>\/g, '&gt;')\n        .replace(\/\"\/g, '&quot;')\n        .replace(\/'\/g, '&#x27;')\n        .replace(\/\\\/\/g, '&#x2F;');\n    }\n\n    \/\/ URL sanitization function to prevent javascript: and data: URLs\n    function sanitizeUrl(url) {\n      if (typeof url !== 'string') return '';\n      const trimmedUrl = url.trim().toLowerCase();\n      if (trimmedUrl.startsWith('javascript:') || trimmedUrl.startsWith('data:') || trimmedUrl.startsWith('vbscript:')) {\n        return '#';\n      }\n      return url;\n    }\n\n    const getBrowserLanguage = () => {\n      if (!window?.navigator?.language?.split('-')[1]) {\n        return window?.navigator?.language?.toUpperCase();\n      }\n      return window?.navigator?.language?.split('-')[1];\n    };\n\n    \n    function getDefaultCountryProgram(defaultCountryCode, smsProgramData) {\n      if (!smsProgramData || smsProgramData.length === 0) {\n        return null;\n      }\n\n      const browserLanguage = getBrowserLanguage();\n\n      if (browserLanguage) {\n        const foundProgram = smsProgramData.find(\n          (program) => program?.countryCode === browserLanguage,\n        );\n        if (foundProgram) {\n          return foundProgram;\n        }\n      }\n\n      if (defaultCountryCode) {\n        const foundProgram = smsProgramData.find(\n          (program) => program?.countryCode === defaultCountryCode,\n        );\n        if (foundProgram) {\n          return foundProgram;\n        }\n      }\n\n      return smsProgramData[0];\n    }\n\n    function updateSmsLegalText(countryCode, fieldName) {\n      if (!countryCode || !fieldName) {\n        return;\n      }\n      \n      const programs = window?.MC?.smsPhoneData?.programs;\n      if (!programs || !Array.isArray(programs)) {\n        return;\n      }\n      \n      const program = programs.find(program => program?.countryCode === countryCode);\n      if (!program || !program.requiredTemplate) {\n        return;\n      }\n    \n      \n      var smsConsentHtmlRenderingFixEnabled = true;\n      \n      const legalTextElement = document.querySelector('#legal-text-' + fieldName);\n      if (!legalTextElement) {\n        return;\n      }\n      \n      const divRegex = new RegExp('<\/?[div][^>]*>', 'gi');\n      const blockWrapperRegex = new RegExp('<\/?(?:div|p)[^>]*>', 'gi');\n      const fullAnchorRegex = new RegExp('<a.*?<\/a>', 'g');\n      const anchorRegex = new RegExp('<a href=\"(.*?)\" target=\"(.*?)\">(.*?)<\/a>');\n      \n      const template = smsConsentHtmlRenderingFixEnabled\n        ? program.requiredTemplate\n            .replace(\/<\\\/p>\\s*<p[^>]*>\/gi, ' ')\n            .replace(blockWrapperRegex, '')\n        : program.requiredTemplate.replace(divRegex, '');\n      \n      \n\n      legalTextElement.textContent = '';\n      const parts = template.split(\/(<a href=\".*?\" target=\".*?\">.*?<\\\/a>)\/g);\n      parts.forEach(function(part) {\n        if (!part) {\n          return;\n        }\n        const anchorMatch = part.match(\/<a href=\"(.*?)\" target=\"(.*?)\">(.*?)<\\\/a>\/);\n        if (anchorMatch) {\n          const linkElement = document.createElement('a');\n          linkElement.href = sanitizeUrl(anchorMatch[1]);\n          linkElement.target = sanitizeHtml(anchorMatch[2]);\n          linkElement.textContent = sanitizeHtml(anchorMatch[3]);\n          legalTextElement.appendChild(linkElement);\n        } else {\n          legalTextElement.appendChild(document.createTextNode(part));\n        }\n      });\n          \n    }\n\n    function generateDropdownOptions(smsProgramData) {\n      if (!smsProgramData || smsProgramData.length === 0) {\n        return '';\n      }\n\n      var programs = false\n        ? smsProgramData.filter(function(p, i, arr) {\n            return arr.findIndex(function(q) { return q.countryCode === p.countryCode; }) === i;\n          })\n        : smsProgramData;\n      \n      return programs.map(program => {\n        const flag = getCountryUnicodeFlag(program.countryCode);\n        const countryName = getCountryName(program.countryCode);\n        const callingCode = program.countryCallingCode || '';\n        \/\/ Sanitize all values to prevent XSS\n        const sanitizedCountryCode = sanitizeHtml(program.countryCode || '');\n        const sanitizedCountryName = sanitizeHtml(countryName || '');\n        const sanitizedCallingCode = sanitizeHtml(callingCode || '');\n        return '<option value=\"' + sanitizedCountryCode + '\">' + sanitizedCountryName + ' ' + sanitizedCallingCode + '<\/option>';\n      }).join('');\n    }\n\n    function getCountryName(countryCode) {\n      if (window.MC?.smsPhoneData?.smsProgramDataCountryNames && Array.isArray(window.MC.smsPhoneData.smsProgramDataCountryNames)) {\n        for (let i = 0; i < window.MC.smsPhoneData.smsProgramDataCountryNames.length; i++) {\n          if (window.MC.smsPhoneData.smsProgramDataCountryNames[i].code === countryCode) {\n            return window.MC.smsPhoneData.smsProgramDataCountryNames[i].name;\n          }\n        }\n      }\n      return countryCode;\n    }\n\n    function getDefaultPlaceholder(countryCode) {\n      if (!countryCode || typeof countryCode !== 'string') {\n        return '+1 000 000 0000'; \/\/ Default US placeholder\n      }\n      \n            var mockPlaceholders = [\n        {\n          countryCode: 'US',\n          placeholder: '+1 000 000 0000',\n          helpText: 'Include the US country code +1 before the phone number',\n        },\n        {\n          countryCode: 'GB',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the GB country code +44 before the phone number',\n        },\n        {\n          countryCode: 'CA',\n          placeholder: '+1 000 000 0000',\n          helpText: 'Include the CA country code +1 before the phone number',\n        },\n        {\n          countryCode: 'AU',\n          placeholder: '+61 000 000 000',\n          helpText: 'Include the AU country code +61 before the phone number',\n        },\n        {\n          countryCode: 'DE',\n          placeholder: '+49 000 0000000',\n          helpText: 'F\u00fcgen Sie vor der Telefonnummer die DE-L\u00e4ndervorwahl +49 ein',\n        },\n        {\n          countryCode: 'FR',\n          placeholder: '+33 0 00 00 00 00',\n          helpText: 'Incluez le code pays FR +33 avant le num\u00e9ro de t\u00e9l\u00e9phone',\n        },\n        {\n          countryCode: 'ES',\n          placeholder: '+34 000 000 000',\n          helpText: 'Incluya el c\u00f3digo de pa\u00eds ES +34 antes del n\u00famero de tel\u00e9fono',\n        },\n        {\n          countryCode: 'NL',\n          placeholder: '+31 0 00000000',\n          helpText: 'Voeg de NL-landcode +31 toe v\u00f3\u00f3r het telefoonnummer',\n        },\n        {\n          countryCode: 'BE',\n          placeholder: '+32 000 00 00 00',\n          helpText: 'Incluez le code pays BE +32 avant le num\u00e9ro de t\u00e9l\u00e9phone',\n        },\n        {\n          countryCode: 'CH',\n          placeholder: '+41 00 000 00 00',\n          helpText: 'F\u00fcgen Sie vor der Telefonnummer die CH-L\u00e4ndervorwahl +41 ein',\n        },\n        {\n          countryCode: 'AT',\n          placeholder: '+43 000 000 0000',\n          helpText: 'F\u00fcgen Sie vor der Telefonnummer die AT-L\u00e4ndervorwahl +43 ein',\n        },\n        {\n          countryCode: 'IE',\n          placeholder: '+353 00 000 0000',\n          helpText: 'Include the IE country code +353 before the phone number',\n        },\n        {\n          countryCode: 'IT',\n          placeholder: '+39 000 000 0000',\n          helpText: 'Includere il prefisso internazionale IT +39 prima del numero di telefono',\n        },\n        {\n          countryCode: 'NO',\n          placeholder: '+47 000 00 000',\n          helpText: 'Inkluder NO landskode +47 f\u00f8r telefonnummeret',\n        },\n        {\n          countryCode: 'SE',\n          placeholder: '+46 00 000 00 00',\n          helpText: 'Inkludera SE landskod +46 f\u00f6re telefonnumret',\n        },\n        {\n          countryCode: 'DK',\n          placeholder: '+45 00 00 00 00',\n          helpText: 'Inkluder DK landekode +45 f\u00f8r telefonnummeret',\n        },\n        {\n          countryCode: 'FI',\n          placeholder: '+358 00 000 0000',\n          helpText: 'Sis\u00e4llyt\u00e4 FI-maakoodi +358 ennen puhelinnumeroa',\n        },\n        {\n          countryCode: 'EE',\n          placeholder: '+372 0000 0000',\n          helpText: 'Lisage EE riigikood +372 telefoninumbri ette',\n        },\n        {\n          countryCode: 'PL',\n          placeholder: '+48 000 000 000',\n          helpText: 'Podaj numer kierunkowy PL +48 przed numerem telefonu',\n        },\n        {\n          countryCode: 'SK',\n          placeholder: '+421 000 000 000',\n          helpText: 'Pred telef\u00f3nne \u010d\u00edslo uve\u010fte k\u00f3d krajiny SK +421',\n        },\n        {\n          countryCode: 'LV',\n          placeholder: '+371 0000 0000',\n          helpText: 'Iek\u013caujiet LV valsts kodu +371 pirms t\u0101lru\u0146a numura',\n        },\n        {\n          countryCode: 'LT',\n          placeholder: '+370 0000 0000',\n          helpText: '\u012etraukite LT \u0161alies kod\u0105 +370 prie\u0161 telefono numer\u012f',\n        },\n        {\n          countryCode: 'GR',\n          placeholder: '+30 000 000 0000',\n          helpText: '\u03a3\u03c5\u03bc\u03c0\u03b5\u03c1\u03b9\u03bb\u03ac\u03b2\u03b5\u03c4\u03b5 \u03c4\u03bf\u03bd \u03ba\u03c9\u03b4\u03b9\u03ba\u03cc \u03c7\u03ce\u03c1\u03b1\u03c2 GR +30 \u03c0\u03c1\u03b9\u03bd \u03b1\u03c0\u03cc \u03c4\u03bf\u03bd \u03b1\u03c1\u03b9\u03b8\u03bc\u03cc \u03c4\u03b7\u03bb\u03b5\u03c6\u03ce\u03bd\u03bf\u03c5',\n        },\n        {\n          countryCode: 'PT',\n          placeholder: '+351 000 000 000',\n          helpText: 'Inclua o c\u00f3digo de pa\u00eds PT +351 antes do n\u00famero de telefone',\n        },\n        {\n          countryCode: 'HR',\n          placeholder: '+385 00 000 0000',\n          helpText: 'Uklju\u010dite HR pozivni broj dr\u017eave +385 prije telefonskog broja',\n        },\n        {\n          countryCode: 'SI',\n          placeholder: '+386 00 000 000',\n          helpText: 'Vklju\u010dite SI kodo dr\u017eave +386 pred telefonsko \u0161tevilko',\n        },\n        {\n          countryCode: 'IS',\n          placeholder: '+354 000 0000',\n          helpText: 'L\u00e1ttu IS landsn\u00famer +354 fylgja \u00e1 undan s\u00edman\u00famerinu',\n        },\n        {\n          countryCode: 'LU',\n          placeholder: '+352 000 000 000',\n          helpText: 'Incluez le code pays LU +352 avant le num\u00e9ro de t\u00e9l\u00e9phone',\n        },\n        {\n          countryCode: 'MC',\n          placeholder: '+377 00 00 00 00',\n          helpText: 'Incluez le code pays MC +377 avant le num\u00e9ro de t\u00e9l\u00e9phone',\n        },\n        {\n          countryCode: 'AD',\n          placeholder: '+376 000 000',\n          helpText: 'Incloeu el codi de pa\u00eds AD +376 abans del n\u00famero de tel\u00e8fon',\n        },\n        {\n          countryCode: 'JE',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the JE country code +44 before the phone number',\n        },\n        {\n          countryCode: 'IM',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the IM country code +44 before the phone number',\n        },\n        {\n          countryCode: 'GG',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the GG country code +44 before the phone number',\n        },\n        {\n          countryCode: 'AL',\n          placeholder: '+355 00 000 0000',\n          helpText: 'P\u00ebrfshini kodin e vendit AL +355 para numrit t\u00eb telefonit',\n        },\n        {\n          countryCode: 'SM',\n          placeholder: '+378 0000 000000',\n          helpText: 'Includere il prefisso internazionale SM +378 prima del numero di telefono',\n        },\n        {\n          countryCode: 'FO',\n          placeholder: '+298 000000',\n          helpText: 'Inkluder FO landekode +298 f\u00f8r telefonnummeret',\n        },\n        {\n          countryCode: 'MT',\n          placeholder: '+356 0000 0000',\n          helpText: 'Include the MT country code +356 before the phone number',\n        },\n        {\n          countryCode: 'LI',\n          placeholder: '+423 000 0000',\n          helpText: 'F\u00fcgen Sie vor der Telefonnummer die LI-L\u00e4ndervorwahl +423 ein',\n        },\n        {\n          countryCode: 'GI',\n          placeholder: '+350 000 00000',\n          helpText: 'Include the GI country code +350 before the phone number',\n        },\n        {\n          countryCode: 'MD',\n          placeholder: '+373 00 000 000',\n          helpText: 'Include\u021bi codul de \u021bar\u0103 MD +373 \u00eenaintea num\u0103rului de telefon',\n        },\n        {\n          countryCode: 'HU',\n          placeholder: '+36 00 000 0000',\n          helpText: 'A telefonsz\u00e1m el\u0151tt adja meg a HU orsz\u00e1gk\u00f3dot +36',\n        },\n        {\n          countryCode: 'NZ',\n          placeholder: '+64 00 000 0000',\n          helpText: 'Include the NZ country code +64 before the phone number',\n        },\n        {\n          countryCode: 'ME',\n          placeholder: '+382 00 000 000',\n          helpText: 'Uklju\u010dite ME pozivni broj dr\u017eave +382 prije telefonskog broja',\n        },\n      ];\n\n      const selectedPlaceholder = mockPlaceholders.find(function(item) {\n        return item &#038;&#038; item.countryCode === countryCode;\n      });\n      \n      return selectedPlaceholder ? selectedPlaceholder.placeholder : mockPlaceholders[0].placeholder;\n    }\n\n    function updatePlaceholder(countryCode, fieldName) {\n      if (!countryCode || !fieldName) {\n        return;\n      }\n      \n      const phoneInput = document.querySelector('#mce-' + fieldName);\n      if (!phoneInput) {\n        return;\n      }\n      \n      const placeholder = getDefaultPlaceholder(countryCode);\n      if (placeholder) {\n        phoneInput.placeholder = placeholder;\n      }\n    }\n\n    function updateCountryCodeInstruction(countryCode, fieldName) {\n      updatePlaceholder(countryCode, fieldName);\n      \n    }\n\n    function getDefaultHelpText(countryCode) {\n      var mockPlaceholders = [\n        {\n          countryCode: 'US',\n          placeholder: '+1 000 000 0000',\n          helpText: 'Include the US country code +1 before the phone number',\n        },\n        {\n          countryCode: 'GB',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the GB country code +44 before the phone number',\n        },\n        {\n          countryCode: 'CA',\n          placeholder: '+1 000 000 0000',\n          helpText: 'Include the CA country code +1 before the phone number',\n        },\n        {\n          countryCode: 'AU',\n          placeholder: '+61 000 000 000',\n          helpText: 'Include the AU country code +61 before the phone number',\n        },\n        {\n          countryCode: 'DE',\n          placeholder: '+49 000 0000000',\n          helpText: 'F\u00fcgen Sie vor der Telefonnummer die DE-L\u00e4ndervorwahl +49 ein',\n        },\n        {\n          countryCode: 'FR',\n          placeholder: '+33 0 00 00 00 00',\n          helpText: 'Incluez le code pays FR +33 avant le num\u00e9ro de t\u00e9l\u00e9phone',\n        },\n        {\n          countryCode: 'ES',\n          placeholder: '+34 000 000 000',\n          helpText: 'Incluya el c\u00f3digo de pa\u00eds ES +34 antes del n\u00famero de tel\u00e9fono',\n        },\n        {\n          countryCode: 'NL',\n          placeholder: '+31 0 00000000',\n          helpText: 'Voeg de NL-landcode +31 toe v\u00f3\u00f3r het telefoonnummer',\n        },\n        {\n          countryCode: 'BE',\n          placeholder: '+32 000 00 00 00',\n          helpText: 'Incluez le code pays BE +32 avant le num\u00e9ro de t\u00e9l\u00e9phone',\n        },\n        {\n          countryCode: 'CH',\n          placeholder: '+41 00 000 00 00',\n          helpText: 'F\u00fcgen Sie vor der Telefonnummer die CH-L\u00e4ndervorwahl +41 ein',\n        },\n        {\n          countryCode: 'AT',\n          placeholder: '+43 000 000 0000',\n          helpText: 'F\u00fcgen Sie vor der Telefonnummer die AT-L\u00e4ndervorwahl +43 ein',\n        },\n        {\n          countryCode: 'IE',\n          placeholder: '+353 00 000 0000',\n          helpText: 'Include the IE country code +353 before the phone number',\n        },\n        {\n          countryCode: 'IT',\n          placeholder: '+39 000 000 0000',\n          helpText: 'Includere il prefisso internazionale IT +39 prima del numero di telefono',\n        },\n        {\n          countryCode: 'NO',\n          placeholder: '+47 000 00 000',\n          helpText: 'Inkluder NO landskode +47 f\u00f8r telefonnummeret',\n        },\n        {\n          countryCode: 'SE',\n          placeholder: '+46 00 000 00 00',\n          helpText: 'Inkludera SE landskod +46 f\u00f6re telefonnumret',\n        },\n        {\n          countryCode: 'DK',\n          placeholder: '+45 00 00 00 00',\n          helpText: 'Inkluder DK landekode +45 f\u00f8r telefonnummeret',\n        },\n        {\n          countryCode: 'FI',\n          placeholder: '+358 00 000 0000',\n          helpText: 'Sis\u00e4llyt\u00e4 FI-maakoodi +358 ennen puhelinnumeroa',\n        },\n        {\n          countryCode: 'EE',\n          placeholder: '+372 0000 0000',\n          helpText: 'Lisage EE riigikood +372 telefoninumbri ette',\n        },\n        {\n          countryCode: 'PL',\n          placeholder: '+48 000 000 000',\n          helpText: 'Podaj numer kierunkowy PL +48 przed numerem telefonu',\n        },\n        {\n          countryCode: 'SK',\n          placeholder: '+421 000 000 000',\n          helpText: 'Pred telef\u00f3nne \u010d\u00edslo uve\u010fte k\u00f3d krajiny SK +421',\n        },\n        {\n          countryCode: 'LV',\n          placeholder: '+371 0000 0000',\n          helpText: 'Iek\u013caujiet LV valsts kodu +371 pirms t\u0101lru\u0146a numura',\n        },\n        {\n          countryCode: 'LT',\n          placeholder: '+370 0000 0000',\n          helpText: '\u012etraukite LT \u0161alies kod\u0105 +370 prie\u0161 telefono numer\u012f',\n        },\n        {\n          countryCode: 'GR',\n          placeholder: '+30 000 000 0000',\n          helpText: '\u03a3\u03c5\u03bc\u03c0\u03b5\u03c1\u03b9\u03bb\u03ac\u03b2\u03b5\u03c4\u03b5 \u03c4\u03bf\u03bd \u03ba\u03c9\u03b4\u03b9\u03ba\u03cc \u03c7\u03ce\u03c1\u03b1\u03c2 GR +30 \u03c0\u03c1\u03b9\u03bd \u03b1\u03c0\u03cc \u03c4\u03bf\u03bd \u03b1\u03c1\u03b9\u03b8\u03bc\u03cc \u03c4\u03b7\u03bb\u03b5\u03c6\u03ce\u03bd\u03bf\u03c5',\n        },\n        {\n          countryCode: 'PT',\n          placeholder: '+351 000 000 000',\n          helpText: 'Inclua o c\u00f3digo de pa\u00eds PT +351 antes do n\u00famero de telefone',\n        },\n        {\n          countryCode: 'HR',\n          placeholder: '+385 00 000 0000',\n          helpText: 'Uklju\u010dite HR pozivni broj dr\u017eave +385 prije telefonskog broja',\n        },\n        {\n          countryCode: 'SI',\n          placeholder: '+386 00 000 000',\n          helpText: 'Vklju\u010dite SI kodo dr\u017eave +386 pred telefonsko \u0161tevilko',\n        },\n        {\n          countryCode: 'IS',\n          placeholder: '+354 000 0000',\n          helpText: 'L\u00e1ttu IS landsn\u00famer +354 fylgja \u00e1 undan s\u00edman\u00famerinu',\n        },\n        {\n          countryCode: 'LU',\n          placeholder: '+352 000 000 000',\n          helpText: 'Incluez le code pays LU +352 avant le num\u00e9ro de t\u00e9l\u00e9phone',\n        },\n        {\n          countryCode: 'MC',\n          placeholder: '+377 00 00 00 00',\n          helpText: 'Incluez le code pays MC +377 avant le num\u00e9ro de t\u00e9l\u00e9phone',\n        },\n        {\n          countryCode: 'AD',\n          placeholder: '+376 000 000',\n          helpText: 'Incloeu el codi de pa\u00eds AD +376 abans del n\u00famero de tel\u00e8fon',\n        },\n        {\n          countryCode: 'JE',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the JE country code +44 before the phone number',\n        },\n        {\n          countryCode: 'IM',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the IM country code +44 before the phone number',\n        },\n        {\n          countryCode: 'GG',\n          placeholder: '+44 0000 000000',\n          helpText: 'Include the GG country code +44 before the phone number',\n        },\n        {\n          countryCode: 'AL',\n          placeholder: '+355 00 000 0000',\n          helpText: 'P\u00ebrfshini kodin e vendit AL +355 para numrit t\u00eb telefonit',\n        },\n        {\n          countryCode: 'SM',\n          placeholder: '+378 0000 000000',\n          helpText: 'Includere il prefisso internazionale SM +378 prima del numero di telefono',\n        },\n        {\n          countryCode: 'FO',\n          placeholder: '+298 000000',\n          helpText: 'Inkluder FO landekode +298 f\u00f8r telefonnummeret',\n        },\n        {\n          countryCode: 'MT',\n          placeholder: '+356 0000 0000',\n          helpText: 'Include the MT country code +356 before the phone number',\n        },\n        {\n          countryCode: 'LI',\n          placeholder: '+423 000 0000',\n          helpText: 'F\u00fcgen Sie vor der Telefonnummer die LI-L\u00e4ndervorwahl +423 ein',\n        },\n        {\n          countryCode: 'GI',\n          placeholder: '+350 000 00000',\n          helpText: 'Include the GI country code +350 before the phone number',\n        },\n        {\n          countryCode: 'MD',\n          placeholder: '+373 00 000 000',\n          helpText: 'Include\u021bi codul de \u021bar\u0103 MD +373 \u00eenaintea num\u0103rului de telefon',\n        },\n        {\n          countryCode: 'HU',\n          placeholder: '+36 00 000 0000',\n          helpText: 'A telefonsz\u00e1m el\u0151tt adja meg a HU orsz\u00e1gk\u00f3dot +36',\n        },\n        {\n          countryCode: 'NZ',\n          placeholder: '+64 00 000 0000',\n          helpText: 'Include the NZ country code +64 before the phone number',\n        },\n        {\n          countryCode: 'ME',\n          placeholder: '+382 00 000 000',\n          helpText: 'Uklju\u010dite ME pozivni broj dr\u017eave +382 prije telefonskog broja',\n        },\n      ];\n      \n      if (!countryCode || typeof countryCode !== 'string') {\n        return mockPlaceholders[0].helpText;\n      }\n      \n      const selectedHelpText = mockPlaceholders.find(function(item) {\n          return item &#038;&#038; item.countryCode === countryCode;\n        });\n        \n        return selectedHelpText ? selectedHelpText.helpText : mockPlaceholders[0].helpText;\n    }\n\n    function setDefaultHelpText(countryCode) {\n      const helpTextSpan = document.querySelector('#help-text');\n      if (!helpTextSpan) {\n        return;\n      }\n\n        \n    }\n\n    function updateHelpTextCountryCode(countryCode, fieldName) {\n      if (!countryCode || !fieldName) {\n        return;\n      }\n      \n      setDefaultHelpText(countryCode);\n    }\n\n    function initializeSmsPhoneDropdown(fieldName) {\n      if (!fieldName || typeof fieldName !== 'string') {\n        return;\n      }\n      \n      const dropdown = document.querySelector('#country-select-' + fieldName);\n      const displayFlag = document.querySelector('#flag-display-' + fieldName);\n      \n      if (!dropdown || !displayFlag) {\n        return;\n      }\n\n      const smsPhoneData = window.MC?.smsPhoneData;\n      if (smsPhoneData &#038;&#038; smsPhoneData.programs &#038;&#038; Array.isArray(smsPhoneData.programs)) {\n        dropdown.innerHTML = generateDropdownOptions(smsPhoneData.programs);\n      }\n\n      const defaultProgram = getDefaultCountryProgram(smsPhoneData?.defaultCountryCode, smsPhoneData?.programs);\n      if (defaultProgram &#038;&#038; defaultProgram.countryCode) {\n        dropdown.value = defaultProgram.countryCode;\n        \n        const flagSpan = displayFlag?.querySelector('#flag-emoji-' + fieldName);\n        if (flagSpan) {\n          flagSpan.textContent = getCountryUnicodeFlag(defaultProgram.countryCode);\n          flagSpan.setAttribute('aria-label', sanitizeHtml(defaultProgram.countryCode) + ' flag');\n        }\n        \n        updateSmsLegalText(defaultProgram.countryCode, fieldName);\n        updatePlaceholder(defaultProgram.countryCode, fieldName);\n        updateCountryCodeInstruction(defaultProgram.countryCode, fieldName);\n      }\n\n     \n      var smsNotRequiredRemoveCountryCodeEnabled = true;\n      var smsField = Object.values({\"EMAIL\":{\"name\":\"EMAIL\",\"label\":\"Email Address\",\"helper_text\":\"\",\"type\":\"email\",\"required\":true,\"audience_field_name\":\"Email Address\",\"merge_id\":0,\"help_text_enabled\":false,\"enabled\":true,\"order\":0,\"field_type\":\"merge\"},\"FNAME\":{\"name\":\"FNAME\",\"label\":\"First Name\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"First Name\",\"merge_id\":1,\"help_text_enabled\":false,\"enabled\":false,\"order\":null,\"field_type\":\"merge\"},\"LNAME\":{\"name\":\"LNAME\",\"label\":\"Last Name\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Last Name\",\"merge_id\":2,\"help_text_enabled\":false,\"enabled\":false,\"order\":null,\"field_type\":\"merge\"},\"ADDRESS\":{\"name\":\"ADDRESS\",\"label\":\"Address\",\"helper_text\":\"\",\"type\":\"address\",\"required\":false,\"audience_field_name\":\"Address\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":3,\"countries\":{\"2\":\"Albania\",\"3\":\"Algeria\",\"4\":\"Andorra\",\"5\":\"Angola\",\"6\":\"Argentina\",\"7\":\"Armenia\",\"8\":\"Australia\",\"9\":\"Austria\",\"10\":\"Azerbaijan\",\"11\":\"Bahamas\",\"12\":\"Bahrain\",\"13\":\"Bangladesh\",\"14\":\"Barbados\",\"15\":\"Belarus\",\"16\":\"Belgium\",\"17\":\"Belize\",\"18\":\"Benin\",\"19\":\"Bermuda\",\"20\":\"Bhutan\",\"21\":\"Bolivia\",\"22\":\"Bosnia and Herzegovina\",\"23\":\"Botswana\",\"24\":\"Brazil\",\"25\":\"Bulgaria\",\"26\":\"Burkina Faso\",\"27\":\"Burundi\",\"28\":\"Cambodia\",\"29\":\"Cameroon\",\"30\":\"Canada\",\"31\":\"Cape Verde\",\"32\":\"Cayman Islands\",\"33\":\"Central African Republic\",\"34\":\"Chad\",\"35\":\"Chile\",\"36\":\"China\",\"37\":\"Colombia\",\"38\":\"Congo\",\"40\":\"Croatia\",\"41\":\"Cyprus\",\"42\":\"Czech Republic\",\"43\":\"Denmark\",\"44\":\"Djibouti\",\"45\":\"Ecuador\",\"46\":\"Egypt\",\"47\":\"El Salvador\",\"48\":\"Equatorial Guinea\",\"49\":\"Eritrea\",\"50\":\"Estonia\",\"51\":\"Ethiopia\",\"52\":\"Fiji\",\"53\":\"Finland\",\"54\":\"France\",\"56\":\"Gabon\",\"57\":\"Gambia\",\"58\":\"Georgia\",\"59\":\"Germany\",\"60\":\"Ghana\",\"61\":\"Greece\",\"63\":\"Guinea\",\"64\":\"Guinea-Bissau\",\"65\":\"Guyana\",\"66\":\"Honduras\",\"67\":\"Hong Kong\",\"68\":\"Hungary\",\"69\":\"Iceland\",\"70\":\"India\",\"71\":\"Indonesia\",\"74\":\"Ireland\",\"75\":\"Israel\",\"76\":\"Italy\",\"78\":\"Japan\",\"79\":\"Jordan\",\"80\":\"Kazakhstan\",\"81\":\"Kenya\",\"82\":\"Kuwait\",\"83\":\"Kyrgyzstan\",\"84\":\"Lao People's Democratic Republic\",\"85\":\"Latvia\",\"86\":\"Lebanon\",\"87\":\"Lesotho\",\"88\":\"Liberia\",\"90\":\"Liechtenstein\",\"91\":\"Lithuania\",\"92\":\"Luxembourg\",\"93\":\"Macedonia\",\"94\":\"Madagascar\",\"95\":\"Malawi\",\"96\":\"Malaysia\",\"97\":\"Maldives\",\"98\":\"Mali\",\"99\":\"Malta\",\"100\":\"Mauritania\",\"101\":\"Mexico\",\"102\":\"Moldova\",\"103\":\"Monaco\",\"104\":\"Mongolia\",\"105\":\"Morocco\",\"106\":\"Mozambique\",\"107\":\"Namibia\",\"108\":\"Nepal\",\"109\":\"Netherlands\",\"110\":\"Netherlands Antilles\",\"111\":\"New Zealand\",\"112\":\"Nicaragua\",\"113\":\"Niger\",\"114\":\"Nigeria\",\"116\":\"Norway\",\"117\":\"Oman\",\"118\":\"Pakistan\",\"119\":\"Panama\",\"120\":\"Paraguay\",\"121\":\"Peru\",\"122\":\"Philippines\",\"123\":\"Poland\",\"124\":\"Portugal\",\"126\":\"Qatar\",\"127\":\"Reunion\",\"128\":\"Romania\",\"129\":\"Russia\",\"130\":\"Rwanda\",\"132\":\"Samoa (Independent)\",\"133\":\"Saudi Arabia\",\"134\":\"Senegal\",\"135\":\"Seychelles\",\"136\":\"Sierra Leone\",\"137\":\"Singapore\",\"138\":\"Slovakia\",\"139\":\"Slovenia\",\"140\":\"Somalia\",\"141\":\"South Africa\",\"142\":\"South Korea\",\"143\":\"Spain\",\"144\":\"Sri Lanka\",\"146\":\"Suriname\",\"147\":\"Swaziland\",\"148\":\"Sweden\",\"149\":\"Switzerland\",\"152\":\"Taiwan\",\"153\":\"Tanzania\",\"154\":\"Thailand\",\"155\":\"Togo\",\"156\":\"Tunisia\",\"157\":\"Turkiye\",\"158\":\"Turkmenistan\",\"159\":\"Uganda\",\"161\":\"Ukraine\",\"162\":\"United Arab Emirates\",\"163\":\"Uruguay\",\"164\":\"USA\",\"165\":\"Uzbekistan\",\"166\":\"Vatican City State (Holy See)\",\"167\":\"Venezuela\",\"168\":\"Vietnam\",\"169\":\"Virgin Islands (British)\",\"170\":\"Yemen\",\"173\":\"Zambia\",\"174\":\"Zimbabwe\",\"175\":\"Antigua And Barbuda\",\"176\":\"Anguilla\",\"179\":\"Aruba\",\"180\":\"Brunei Darussalam\",\"181\":\"Bouvet Island\",\"183\":\"Cook Islands\",\"185\":\"Christmas Island\",\"187\":\"Dominican Republic\",\"188\":\"Western Sahara\",\"189\":\"Falkland Islands\",\"191\":\"Faroe Islands\",\"192\":\"Grenada\",\"193\":\"French Guiana\",\"194\":\"Gibraltar\",\"195\":\"Greenland\",\"196\":\"Guadeloupe\",\"198\":\"Guatemala\",\"200\":\"Haiti\",\"202\":\"Jamaica\",\"203\":\"Kiribati\",\"204\":\"Comoros\",\"205\":\"Saint Kitts and Nevis\",\"206\":\"Saint Lucia\",\"207\":\"Marshall Islands\",\"208\":\"Macau\",\"210\":\"Martinique\",\"212\":\"Mauritius\",\"213\":\"New Caledonia\",\"214\":\"Norfolk Island\",\"215\":\"Nauru\",\"217\":\"Niue\",\"219\":\"Papua New Guinea\",\"221\":\"Pitcairn\",\"222\":\"Palau\",\"223\":\"Solomon Islands\",\"225\":\"Svalbard and Jan Mayen Islands\",\"227\":\"San Marino\",\"232\":\"Tonga\",\"233\":\"Timor-Leste\",\"234\":\"Trinidad and Tobago\",\"235\":\"Tuvalu\",\"237\":\"Saint Vincent and the Grenadines\",\"239\":\"Vanuatu\",\"241\":\"Mayotte\",\"242\":\"Myanmar\",\"255\":\"Sao Tome and Principe\",\"257\":\"South Georgia and the South Sandwich Islands\",\"260\":\"Tajikistan\",\"262\":\"United Kingdom\",\"268\":\"Costa Rica\",\"270\":\"Guernsey\",\"272\":\"North Korea\",\"274\":\"Afghanistan\",\"275\":\"Cote D'Ivoire\",\"276\":\"Cuba\",\"277\":\"French Polynesia\",\"278\":\"Iran\",\"279\":\"Iraq\",\"281\":\"Libya\",\"282\":\"Palestine\",\"285\":\"Syria\",\"286\":\"Aaland Islands\",\"287\":\"Turks &#038; Caicos Islands\",\"288\":\"Jersey  (Channel Islands)\",\"289\":\"Dominica\",\"290\":\"Montenegro\",\"293\":\"Sudan\",\"294\":\"Montserrat\",\"298\":\"Curacao\",\"302\":\"Sint Maarten\",\"311\":\"South Sudan\",\"315\":\"Republic of Kosovo\",\"318\":\"Congo, Democratic Republic of the\",\"323\":\"Isle of Man\",\"324\":\"Saint Martin\",\"325\":\"Bonaire, Saint Eustatius and Saba\",\"326\":\"Serbia\",\"327\":\"Saint Barthelemy\"},\"defaultcountry\":164},\"interests_179003\":{\"name\":\"interests_179003\",\"label\":\"Your Interests\",\"helper_text\":\"\",\"type\":\"checkbox\",\"required\":false,\"choices\":[],\"audience_field_name\":\"Your Interests\",\"enabled\":false,\"order\":null,\"field_type\":\"group\",\"group_id\":179003}}).find(function(f) { return f.name === fieldName &#038;&#038; f.type === 'smsphone'; });\n      var isRequired = smsField ? smsField.required : false;\n      var shouldAppendCountryCode = smsNotRequiredRemoveCountryCodeEnabled ? isRequired : true;\n      \n      var phoneInput = document.querySelector('#mce-' + fieldName);\n      if (phoneInput &#038;&#038; defaultProgram.countryCallingCode &#038;&#038; shouldAppendCountryCode) {\n        phoneInput.value = defaultProgram.countryCallingCode;\n      }\n      \n\n\n      displayFlag?.addEventListener('click', function(e) {\n        dropdown.focus();\n      });\n\n\n      dropdown?.addEventListener('change', function() {\n        const selectedCountry = this.value;\n        \n        if (!selectedCountry || typeof selectedCountry !== 'string') {\n          return;\n        }\n        \n        const flagSpan = displayFlag?.querySelector('#flag-emoji-' + fieldName);\n        if (flagSpan) {\n          flagSpan.textContent = getCountryUnicodeFlag(selectedCountry);\n          flagSpan.setAttribute('aria-label', sanitizeHtml(selectedCountry) + ' flag');\n        }\n\n         \n        const selectedProgram = window.MC?.smsPhoneData?.programs.find(function(program) {\n          return program &#038;&#038; program.countryCode === selectedCountry;\n        });\n\n        var smsNotRequiredRemoveCountryCodeEnabled = true;\n        var smsField = Object.values({\"EMAIL\":{\"name\":\"EMAIL\",\"label\":\"Email Address\",\"helper_text\":\"\",\"type\":\"email\",\"required\":true,\"audience_field_name\":\"Email Address\",\"merge_id\":0,\"help_text_enabled\":false,\"enabled\":true,\"order\":0,\"field_type\":\"merge\"},\"FNAME\":{\"name\":\"FNAME\",\"label\":\"First Name\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"First Name\",\"merge_id\":1,\"help_text_enabled\":false,\"enabled\":false,\"order\":null,\"field_type\":\"merge\"},\"LNAME\":{\"name\":\"LNAME\",\"label\":\"Last Name\",\"helper_text\":\"\",\"type\":\"text\",\"required\":false,\"audience_field_name\":\"Last Name\",\"merge_id\":2,\"help_text_enabled\":false,\"enabled\":false,\"order\":null,\"field_type\":\"merge\"},\"ADDRESS\":{\"name\":\"ADDRESS\",\"label\":\"Address\",\"helper_text\":\"\",\"type\":\"address\",\"required\":false,\"audience_field_name\":\"Address\",\"enabled\":false,\"order\":null,\"field_type\":\"merge\",\"merge_id\":3,\"countries\":{\"2\":\"Albania\",\"3\":\"Algeria\",\"4\":\"Andorra\",\"5\":\"Angola\",\"6\":\"Argentina\",\"7\":\"Armenia\",\"8\":\"Australia\",\"9\":\"Austria\",\"10\":\"Azerbaijan\",\"11\":\"Bahamas\",\"12\":\"Bahrain\",\"13\":\"Bangladesh\",\"14\":\"Barbados\",\"15\":\"Belarus\",\"16\":\"Belgium\",\"17\":\"Belize\",\"18\":\"Benin\",\"19\":\"Bermuda\",\"20\":\"Bhutan\",\"21\":\"Bolivia\",\"22\":\"Bosnia and Herzegovina\",\"23\":\"Botswana\",\"24\":\"Brazil\",\"25\":\"Bulgaria\",\"26\":\"Burkina Faso\",\"27\":\"Burundi\",\"28\":\"Cambodia\",\"29\":\"Cameroon\",\"30\":\"Canada\",\"31\":\"Cape Verde\",\"32\":\"Cayman Islands\",\"33\":\"Central African Republic\",\"34\":\"Chad\",\"35\":\"Chile\",\"36\":\"China\",\"37\":\"Colombia\",\"38\":\"Congo\",\"40\":\"Croatia\",\"41\":\"Cyprus\",\"42\":\"Czech Republic\",\"43\":\"Denmark\",\"44\":\"Djibouti\",\"45\":\"Ecuador\",\"46\":\"Egypt\",\"47\":\"El Salvador\",\"48\":\"Equatorial Guinea\",\"49\":\"Eritrea\",\"50\":\"Estonia\",\"51\":\"Ethiopia\",\"52\":\"Fiji\",\"53\":\"Finland\",\"54\":\"France\",\"56\":\"Gabon\",\"57\":\"Gambia\",\"58\":\"Georgia\",\"59\":\"Germany\",\"60\":\"Ghana\",\"61\":\"Greece\",\"63\":\"Guinea\",\"64\":\"Guinea-Bissau\",\"65\":\"Guyana\",\"66\":\"Honduras\",\"67\":\"Hong Kong\",\"68\":\"Hungary\",\"69\":\"Iceland\",\"70\":\"India\",\"71\":\"Indonesia\",\"74\":\"Ireland\",\"75\":\"Israel\",\"76\":\"Italy\",\"78\":\"Japan\",\"79\":\"Jordan\",\"80\":\"Kazakhstan\",\"81\":\"Kenya\",\"82\":\"Kuwait\",\"83\":\"Kyrgyzstan\",\"84\":\"Lao People's Democratic Republic\",\"85\":\"Latvia\",\"86\":\"Lebanon\",\"87\":\"Lesotho\",\"88\":\"Liberia\",\"90\":\"Liechtenstein\",\"91\":\"Lithuania\",\"92\":\"Luxembourg\",\"93\":\"Macedonia\",\"94\":\"Madagascar\",\"95\":\"Malawi\",\"96\":\"Malaysia\",\"97\":\"Maldives\",\"98\":\"Mali\",\"99\":\"Malta\",\"100\":\"Mauritania\",\"101\":\"Mexico\",\"102\":\"Moldova\",\"103\":\"Monaco\",\"104\":\"Mongolia\",\"105\":\"Morocco\",\"106\":\"Mozambique\",\"107\":\"Namibia\",\"108\":\"Nepal\",\"109\":\"Netherlands\",\"110\":\"Netherlands Antilles\",\"111\":\"New Zealand\",\"112\":\"Nicaragua\",\"113\":\"Niger\",\"114\":\"Nigeria\",\"116\":\"Norway\",\"117\":\"Oman\",\"118\":\"Pakistan\",\"119\":\"Panama\",\"120\":\"Paraguay\",\"121\":\"Peru\",\"122\":\"Philippines\",\"123\":\"Poland\",\"124\":\"Portugal\",\"126\":\"Qatar\",\"127\":\"Reunion\",\"128\":\"Romania\",\"129\":\"Russia\",\"130\":\"Rwanda\",\"132\":\"Samoa (Independent)\",\"133\":\"Saudi Arabia\",\"134\":\"Senegal\",\"135\":\"Seychelles\",\"136\":\"Sierra Leone\",\"137\":\"Singapore\",\"138\":\"Slovakia\",\"139\":\"Slovenia\",\"140\":\"Somalia\",\"141\":\"South Africa\",\"142\":\"South Korea\",\"143\":\"Spain\",\"144\":\"Sri Lanka\",\"146\":\"Suriname\",\"147\":\"Swaziland\",\"148\":\"Sweden\",\"149\":\"Switzerland\",\"152\":\"Taiwan\",\"153\":\"Tanzania\",\"154\":\"Thailand\",\"155\":\"Togo\",\"156\":\"Tunisia\",\"157\":\"Turkiye\",\"158\":\"Turkmenistan\",\"159\":\"Uganda\",\"161\":\"Ukraine\",\"162\":\"United Arab Emirates\",\"163\":\"Uruguay\",\"164\":\"USA\",\"165\":\"Uzbekistan\",\"166\":\"Vatican City State (Holy See)\",\"167\":\"Venezuela\",\"168\":\"Vietnam\",\"169\":\"Virgin Islands (British)\",\"170\":\"Yemen\",\"173\":\"Zambia\",\"174\":\"Zimbabwe\",\"175\":\"Antigua And Barbuda\",\"176\":\"Anguilla\",\"179\":\"Aruba\",\"180\":\"Brunei Darussalam\",\"181\":\"Bouvet Island\",\"183\":\"Cook Islands\",\"185\":\"Christmas Island\",\"187\":\"Dominican Republic\",\"188\":\"Western Sahara\",\"189\":\"Falkland Islands\",\"191\":\"Faroe Islands\",\"192\":\"Grenada\",\"193\":\"French Guiana\",\"194\":\"Gibraltar\",\"195\":\"Greenland\",\"196\":\"Guadeloupe\",\"198\":\"Guatemala\",\"200\":\"Haiti\",\"202\":\"Jamaica\",\"203\":\"Kiribati\",\"204\":\"Comoros\",\"205\":\"Saint Kitts and Nevis\",\"206\":\"Saint Lucia\",\"207\":\"Marshall Islands\",\"208\":\"Macau\",\"210\":\"Martinique\",\"212\":\"Mauritius\",\"213\":\"New Caledonia\",\"214\":\"Norfolk Island\",\"215\":\"Nauru\",\"217\":\"Niue\",\"219\":\"Papua New Guinea\",\"221\":\"Pitcairn\",\"222\":\"Palau\",\"223\":\"Solomon Islands\",\"225\":\"Svalbard and Jan Mayen Islands\",\"227\":\"San Marino\",\"232\":\"Tonga\",\"233\":\"Timor-Leste\",\"234\":\"Trinidad and Tobago\",\"235\":\"Tuvalu\",\"237\":\"Saint Vincent and the Grenadines\",\"239\":\"Vanuatu\",\"241\":\"Mayotte\",\"242\":\"Myanmar\",\"255\":\"Sao Tome and Principe\",\"257\":\"South Georgia and the South Sandwich Islands\",\"260\":\"Tajikistan\",\"262\":\"United Kingdom\",\"268\":\"Costa Rica\",\"270\":\"Guernsey\",\"272\":\"North Korea\",\"274\":\"Afghanistan\",\"275\":\"Cote D'Ivoire\",\"276\":\"Cuba\",\"277\":\"French Polynesia\",\"278\":\"Iran\",\"279\":\"Iraq\",\"281\":\"Libya\",\"282\":\"Palestine\",\"285\":\"Syria\",\"286\":\"Aaland Islands\",\"287\":\"Turks &#038; Caicos Islands\",\"288\":\"Jersey  (Channel Islands)\",\"289\":\"Dominica\",\"290\":\"Montenegro\",\"293\":\"Sudan\",\"294\":\"Montserrat\",\"298\":\"Curacao\",\"302\":\"Sint Maarten\",\"311\":\"South Sudan\",\"315\":\"Republic of Kosovo\",\"318\":\"Congo, Democratic Republic of the\",\"323\":\"Isle of Man\",\"324\":\"Saint Martin\",\"325\":\"Bonaire, Saint Eustatius and Saba\",\"326\":\"Serbia\",\"327\":\"Saint Barthelemy\"},\"defaultcountry\":164},\"interests_179003\":{\"name\":\"interests_179003\",\"label\":\"Your Interests\",\"helper_text\":\"\",\"type\":\"checkbox\",\"required\":false,\"choices\":[],\"audience_field_name\":\"Your Interests\",\"enabled\":false,\"order\":null,\"field_type\":\"group\",\"group_id\":179003}}).find(function(f) { return f.name === fieldName &#038;&#038; f.type === 'smsphone'; });\n        var isRequired = smsField ? smsField.required : false;\n        var shouldAppendCountryCode = smsNotRequiredRemoveCountryCodeEnabled ? isRequired : true;\n        \n        var phoneInput = document.querySelector('#mce-' + fieldName);\n        if (phoneInput &#038;&#038; selectedProgram.countryCallingCode &#038;&#038; shouldAppendCountryCode) {\n          phoneInput.value = selectedProgram.countryCallingCode;\n        }\n        \n        \n        updateSmsLegalText(selectedCountry, fieldName);\n        updatePlaceholder(selectedCountry, fieldName);\n        updateCountryCodeInstruction(selectedCountry, fieldName);\n      });\n    }\n\n    document.addEventListener('DOMContentLoaded', function() {\n      const smsPhoneFields = document.querySelectorAll('[id^=\"country-select-\"]');\n      \n      smsPhoneFields.forEach(function(dropdown) {\n        const fieldName = dropdown?.id.replace('country-select-', '');\n        initializeSmsPhoneDropdown(fieldName);\n      });\n    });\n    <\/script><\/div>\n\n<\/center>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<p>---<br><span class=\"tadv-color\" style=\"color:#0693e3\">Comprehend.<\/span> <span class=\"tadv-color\" style=\"color:#cf2e2e\">Reimagine.<\/span> <span class=\"tadv-color\" style=\"color:#c9b669\">Outperform.<\/span><br><br>Alwin Kwan<br>Your Friendly Neighbourhood Process Consultant<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So you&#8217;ve built your basic linear process and you&#8217;re feeling good about it. You&#8217;ve been able to map out the most efficient way to take the trash, you&#8217;ve shown grandma how to install an Iphone app in 3 easy and&#8230;<\/p>\n","protected":false},"author":2,"featured_media":1147,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,3],"tags":[],"class_list":["post-1064","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","category-process-improvement"],"_links":{"self":[{"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/posts\/1064","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/comments?post=1064"}],"version-history":[{"count":3,"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/posts\/1064\/revisions"}],"predecessor-version":[{"id":4307,"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/posts\/1064\/revisions\/4307"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/media\/1147"}],"wp:attachment":[{"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/media?parent=1064"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/categories?post=1064"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/processprimer.com\/blog\/wp-json\/wp\/v2\/tags?post=1064"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}