SOLVED: Link from button element generated from another element, not working in detail view

Status
Not open for further replies.

abel408

Member
Hello all,

I've followed the example in this guide, http://fabrikar.com/forums/index.php?wiki/button-element/ , to create a button link that is generated from a field element. The button works great in form view, but does not work in detail view. It is displayed, but clicking on it does nothing. I am getting the following javascript error:

Uncaught TypeError: Cannot read property 'get' of undefined

This issue appears on the admin backend as well so I know it's not a template issue.
Any help is greatly appreciated. Thanks!
 
I've concluded that the problem has to do with the following line:
Code:
var url = Fabrik.getBlock('form_1').formElements.get('jobs___recruiter_link').getValue();

The element I am trying to retrieve is just a text field. it is form number 1, so I assume that I use form_1 as the value for Fabrik.getBlock? Why does the button work on the form view, but not the detail view?

Thanks
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Staff online

Back
Top