How to Launch a shortcut from image icon (Solved)

I have a widget that launches 2 Shortcuts, without problem.

//--------------------------------------
//Setup for Launching ShortCuts in Script
//const SHORTCUTNAME = "Alarm_Set";
const XCBURL =  "shortcuts://x-callback-url/run-shortcut"
let cb = new CallbackURL(XCBURL);
let cb1 = new CallbackURL(XCBURL);

function OpenShortCut(){
cb.addParameter("name", "Alarm_Set");
cb.open();
cb1.addParameter("name", "Get_Volume");
cb1.open();
}
//--------------------------------------

… for this widget
image

The shortcuts are launched on tapping the widget

//---------------------------------------
if (config.runsInApp) {
OpenShortCut()
Script.complete()
}
//---------------------------------------

Actual, as you can see,I have 1 icon image add.
How i can launch one of the 2 shortcuts, on tapping the icon.
That way I could run each shortcut separately.
One for setting up my alarm

the other for checking my device Volume

Thanx in Advance

You would have to use a medium or large widget and assign a Shortcut URL to each WidgetImage using its url property. A small widget has only one tap target, so it can launch only one URL.

Ok, thanx, using this kind of url
stack1.url= "shortcuts://run-shortcut?name=Get_Volume” (which is the solution part of this topic)

Correct. I have a similar widget (medium) with three stacks. Each stack has the url property set to a different shortcut.

Totally not related to the original question, but you can exit shortcuts directly without calling another app: Shortcuts (made by @supermamon)

Either copy the action into your shortcut or call this shortcut from the other. You cannot create the action yourself easily, because there is no SpringBoard app to choose from. It was created by modifying the shortcut file with a text editor.

Thanx, indeed, this seems to work!!! apparently this is a hidden app (cfr. wiki springboard for ios)

… it was created by modifying the shortcut by editor. This is something cool! By this method you can launch other hidden ios apps or features! This triggers me for new shortcuts😉

I wonder, if by editing, you could jump to a certain screen of your Iphone🤔
So at each page the home shortcut (for the home screen)or Page 3 for a page with specific apps.
If you put these kind of shortcut on your home screen… (9 pages means only 9 shortcuts), you could arrange your family apps on a page instead of a small 9 items group. This should be super.
In combination , hide your pages… then you have only 1 page and you could jump to another hidden page.