Test this one and take a look onto CONSOLE!
$w.onReady(()=>{
let data = {
element: "text170",
command: "hide",
};
console.log($w(`#${data.element}`));
console.log(data.command);
$w(`#${data.element}`)[data.command]();
});
-Your element-ID is —> “text170”
-Your sent command is —> “hide”
-Your prefix is placed on PAGE-B → #
-This one should → HIDE your wished element on PAGE-B…
$w(`#${data.element}`)[data.command]();
Now put all your knowledge together and create a working code ![]()