alexandrepaulino
Forum Replies Created
-
I forgot to include another piece of information.
When I add the shortcode in the description of the post, it doesn’t appear and gives the following error code:CODE:
if (typeof hasAmeliaEvent === ‘undefined’) { var hasAmeliaEvent = true; } if (typeof hasEventApiCall === ‘undefined’ && ” === ”) { var hasEventApiCall = true; } var hasEventShortcode = (typeof hasEventShortcode === ‘undefined’) ? false : true; var ameliaShortcodeData = (typeof ameliaShortcodeData === ‘undefined’) ? [] : ameliaShortcodeData; ameliaShortcodeData.push( { ‘hasApiCall’: (typeof hasEventApiCall !== ‘undefined’) && hasEventApiCall, ‘trigger’: ”, ‘trigger_type’: ”, ‘triggered_form’: ‘elf’, ‘in_dialog’: ”, ‘counter’: ‘1000’, ’employee’: ”, ‘eventId’: ”, ‘eventRecurring’: 0, ‘eventTag’: “”, ‘locationId’: “” } ); var ameliaShortcodeDataTriggered = (typeof ameliaShortcodeDataTriggered === ‘undefined’) ? [] : ameliaShortcodeDataTriggered; if (ameliaShortcodeData[ameliaShortcodeData.length – 1].trigger !== ”) { if (ameliaShortcodeDataTriggered.filter(a => a.counter === ameliaShortcodeData[ameliaShortcodeData.length – 1].counter).length === 0) { ameliaShortcodeDataTriggered.push(ameliaShortcodeData.pop()); } else { ameliaShortcodeData.pop() } } if (typeof hasEventApiCall !== ‘undefined’ && hasEventApiCall) { hasEventApiCall = false; }
The image below shows the issue.
If you visit the URL, you’ll see the code error.
Thanks.