• Fabrik4.5.3 for J!5.3.0 and J!4.2+is out

    You must update from Fabrik4.5.1 if you are running Joomla!5.3.0

    See Announcements

How does the button work?

p38

Well-Known Member
I cannot see any options for the button, so would like to know how I can use this in a list view?

Can I use it to hyperlink to the URL stored in the element record?
 
I am not sure whay you mean with your hyperlink, but regarding the button, I think the only thiing you can do is to associate a Javascript to it (in the JS tab).
 
Correct.

So yes, you could use it to hyperlink to the value of another element. The button element itself has no "value".

So you might do something like this, to get a URL fromanother element called some_element ...

var url = form_123.formElements.get('yourtable___some_element').getValue;
window.location.replace(url);

... or window.open(url) to open it in a new window/tab.

-- hugh
 
Correct.

So yes, you could use it to hyperlink to the value of another element. The button element itself has no "value".

So you might do something like this, to get a URL fromanother element called some_element ...

var url = form_123.formElements.get('yourtable___some_element').getValue;
window.location.replace(url);

... or window.open(url) to open it in a new window/tab.

-- hugh
 
note to anyone reading this for f3.1. you'll need to use:
Fabrik.getBlock('form_123').formElements.get('yourtable___some_element').getValue();

and i think everyone may need a () on the end of getValue...
 
  • Like
Reactions: rob
Back
Top