I am finding this challenging but I'm learning everything as I go.
I have a button (New Model) on a form (Vehicle), when its clicked I want to open my "New Model form", with the "Make" dropdown already populated with the raw data from the (tbl_vehicle___fk) dropdown on the form (Vehicle).
I managed to get the value of (tbl_vehicle___fk)
and I can enter raw data into the url to achieve my goal, but I can't bring them together.
Here is what I have already.
I have a button (New Model) on a form (Vehicle), when its clicked I want to open my "New Model form", with the "Make" dropdown already populated with the raw data from the (tbl_vehicle___fk) dropdown on the form (Vehicle).
I managed to get the value of (tbl_vehicle___fk)
and I can enter raw data into the url to achieve my goal, but I can't bring them together.
Here is what I have already.
JavaScript:
var MakeIdVar = Fabrik.getBlock('form_9').formElements.get('tbl_vehicle___fk').getValue();
Fabrik.getWindow({id:'uniqueid', 'loadMethod': 'iframe', 'contentURL':'http://192.168.16.5/joomla/index.php?Itemid=&option=com_fabrik&task=form.view&formid=8&rowid=&tbl_model___FK_raw="MakeIdVar"&tmpl=component', 'title': 'window title'});