Try to stop the {site} command pulling from another tab

Hello all,

I have a current snippet that our service desk uses to respond to tickets. We use the {site} command, seen below, to personalise our responses to the caller's name.

However, should the caller's name not be available to select, then the {site} command will pull this information from another ticket open in another tab. This isn't ideal as it can confuse matters and pull the wrong information.

Is there a way to change the command so it only pulls from the current tab?

Good {if: {time: H} < 12}morning{elseif: {time: H} < 17}afternoon{else}evening{endif} {data=catch(catch({=extractregex({site: text; page=Specsavers; selector=macroponent-f51912f4c700201072b211d4d8c26010 |> iframe |> #incident\.u_store_user_name}, "(\w+)")}, {=extractregex({site: text; page=Specsavers; selector=#incident\.u_store_user_name}, "(\w+)")}), "")}{=data},

The issue you reported with {formtext: name=issue; cols=30} has now been resolved.

Hey @OllieJS

You have specified the "page" attribute which causes a tab to be selected. You want to click on the "x" button next to the "page" attribute, and then this {site} command will only pull data from the current tab.

When you click on the {site} command, the "page" attribute will be visible as shown below:

The "x" button is in the top-right. Let us know if it works for you.

1 Like

That has worked perfectly. Thanks again Gaurang!