Javascript form_id from list has rowid appended

chipperfield

New Member
Hi there,
I'm trying to use javascript on an edit form loaded from a list.
When used standalone the form id is simple and I can reference:
var form_9 = Fabrik.getBlock('form_9');
I see from the wiki that when using the form to edit a list row the rowid is appended, so the form in firebug is now something like form_9_96. form_9 is now undefined.
This wiki suggestion does not seem to work:
So for Fabrik 3.1 onwards, to facilitate things you can get access to either form_1_x or form_1 by using this syntax:
var form = Fabrik.getBlock('form_1');
Can someone tell me what I am doing wrong? Must be something simple!
Thanks,
Giles
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top