Link Event¶
An event of Link type is an event set on a widget within a slide that connects you to a webpage, another slide, or activates a filter while switching slide.
In the Link event type, the following options are available:
Write here your link: it allows you to directly enter the link of the web page or slide, which you will be directed to.
Open modal window: when selected, the web page or slide will be opened in a new modal window.
Depending on the type of link you want to establish, there are two different syntaxes:
for web pages: type a link in HTTPS format.
to link to another slide within the same view: use the
#
symbol followed by the slide name. For example, to go to the slide named Slide_2, write #Slide2.
Tip
To activate the filter of an Actions widget when entering a slide, you can use specific query parameters in the slide URL. In particular, when using the #
symbol in the Write here your link box, you can append the following query string: ?widget<widget name>=<filtervalue>
.
You can also combine multiple filters by using the standard &
symbol. For example, to open Slide_2 and apply a filter on a widget named filterdropdown1 with the value Label1, you can write this link: #Slide_2?widgetfilterdropdown1=Label1
.
Remember to insert the name of a specific Actions widget, you need to access the Slides tab, click on the expand icon of the slide you want to reach, and from there the names of the widgets on that slide will be visible. Alternatively, you can click on the Show widget names icon to display the widget names directly on the slide.
Warning
The link filtering on Actions widgets can only be used for the following types: Filter button, Filter form field, Filter drop down menu, Filter radio button.
In links applying filters to Actions widgets, it is also possible to:
apply filters to multiple Actions simultaneously within the same link by separating each filter with the
&
symbol. As in the following example:#Slide_2?widgetfilterdropdown1=Label1&widgetfilterbutton1=Label1,Label2
.select multiple values on a Filter button widget. If you have a button widget divided into multiple buttons, you can enter the values of these buttons separated by commas. As in the previous example, the filter
widgetfilterbutton1=Label1,Label2
applies the filter to both Label1 and Label2 on the filterbutton1 widget.
Example¶
Follow the instructions below to set up a filtering link event on a General button widget to visualize filtered data on a specific slide.
Import the Link Event_Adult view together with the Adult dataset into Rulex Studio.
Drag and drop a General button widget onto the Adult_Overview slide.
Right-click on the General button widget and select the Open widget layout entry.
Enter the title Filter Fed-Gov workclass in the Title text field of the Layout options window and click APPLY.

Right-click again on the General button widget.
Select the Set events option and choose the onClick trigger entry.
Type in the link #Federal_gov?widgetfilterbutton1=FG in the Write here your link text field, then select the Open in a new window checkbox in the Studio Events window.

Save the event and close the Studio Events window.
Click on the General button widget to be redirected to the filtered Federal_gov slide.

Note
In this example, we used a link to filter data based on a specific value of an invisible Filter button action. To make an Actions widget invisible, you need to uncheck the Node is visible option in the node layout menu for that specific widget.