How does the button work?

p38

Active 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
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top