54
Views
7
Comments
Can we call a client action by Webbrowser F12 Console
Application Type
Reactive

Hi everyone,

As mentioned in the title,

Can we call a client action by Webbrowser F12 Console ?

Thank you !!

2020-11-25 10-45-32
Mostafa Othman
Champion

Hello Kiet,

You can achieve this using Javascript on Console tab of developer tools. 

For example if you want to click a button so first command to getElementById using Id of button then element.click();


2025-12-04 09-01-03
Kiet Phan
Champion

thank you for suggesting, but I wanna know can we call directly the client action by using Javascript on the Console tab :)

2023-09-06 11-31-56
Hitesh Maran

Hi Kiet, 

You can achieve this find the URL for your reference. 


Thanks,

Hitesh 


 

2025-12-04 09-01-03
Kiet Phan
Champion

Thank you for the suggestion,

The solution in that topic is calling the $actions but it does not exist in the browser's console developer tools.

umm.. I think It's seem to be impossible to call a client action from browser's console developer tools :)

Thank for all suggestion !!

2020-11-25 10-45-32
Mostafa Othman
Champion

I am not sure if it is possible or no but as workaround you can add button in your page and assign your client action to on click of this button then call click() using console from developer tool

2021-09-06 15-09-53
Dorine Boudry
 
MVP

calling $actions is not available if you don't prepare for it inside your code.

You'd have to have a javascript node in each screen and block, making available the actions, (for example as a global variable on the windows object)  It can get real messy with blocks being initialized and destroyed over time (think blocks inside a list, for example).

But for a quick way of debugging / executing parts of the code at will from inside dev tools, it could be an option.


2025-12-04 09-01-03
Kiet Phan
Champion

As @Dorine Boudry said, I did want to do some testing but not want to touch the code :D.

But it seems to be impossible to do that. So thank you all for suggesting!  :)

Have a nice day!


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.