Is it possible to call this action from a url? I am using Dynamic Menus from the Forge, which creates a menu based on the Level of the url (nesting) and the url that is set.
Hi
What are the specifications for widget click. For some reason it doesn't appear to work.
Ashish Sarwal wrote:
Trigger screen action internally
https://is.gd/jL73rW
Olivia Beech wrote:
Hi Olivia Beech,
You can use Runjavascript server action
"$('#"+Button.Id+"').click();"
Do not set the button visible to false, because it will make your button can't be accessed from anywhere.But change the style to "display:none".And to trigger click event for that button, inside an client action (example another button action) use Runjavascript action from HTTPRequestHandler with script :
SyntaxEditor Code Snippet
"document.getElementById('"+Yourbutton.Id+"').click();"
Good luck!
You can use the runjavascript server action as said above for:
If you are wanting to 'click' the button but not have it displayed on the page, make sure the visible is = true and in the extended properties of the button put:
style= "display: none;"
I hope this helps! :)
Ebony van der Raaij wrote:
very good. This quoted procedure works correctly.
Hi Olivia Beech
You can also use the action "widget_click"
Regards
Hi Olivia,
The easiest way is to use the widget click function that is available in the RichWidgets module:
You will need to give the button a name so you can identify the widget:
And then you call it in a screen action using the widget identification:
Be aware that this will not work on the preparation since the preparation runs before the screen is rendered, which means that when the preparation runs, the button still does not exist.
Cheers,
João