Link Data Field

The Link Data Field is a field which generates a button that links to another bloc. It also passes data to this other bloc through the url. This is a useful way of loading blocs straight from the data results and passing in data to the bloc you are about to load.

This might be used in a situation where you want to load information about a certain company. By passing in the company name, and setting the Filtered Field parameter, the data in the destination bloc will load just that companies data.

The button can appear either in the form, or in the results. The resulting url may look like the following: https://example.blocworx.com/module/odm-app/bloc/1234?urlFieldSlugData={"company_name":"Blocworx"} (note that this may appear as the following in the url bar: https://example.blocworx.com/module/odm-app/bloc/1234?urlFieldSlugData=%7B%22company_name%22%3A%22Blocworx%22%7D but is still correct)

In the above example the value of a field called Company Name is being passed into the url.

The resulting url may also be a custom url with normal parameters being added, e.g. https://www.example.com?company_name=Blocworx

Again in that example the field calledd Company Name is being passed in.

Initial Field Parameters

ParameterDescription

Type Module name (min 3 letters, leave blank to use current module)

Used to find the module you would like to use in order to find the bloc to link to.

Select Bloc

The Bloc you are intending the button the link to

OR Enter Custom Url

This options allows you to enter your own url instead of choosing a bloc.

Opens in New Tab

This opens the link in a new tab

Text on Button

This text will appear on the button (which is the link)

Choose Button Colour

The colour of the button

Select the fields to add to the Url.

All the values of these selected fields will get appended to the URL as described in the description above.

Last updated