databasejoin multi-select-dropown defaults

vivoices

New Member
Hi,
I have a hidden databasejoin element set to render as multi-select-dropown.

How do I set values e.g. 3, 27 and 44 as defaults so the will be written into the _repeat_ table on form submission?

Fabrik update from GitHub Aug 6th 2013, Joomla 3.1.5.

I also cannot find the values in the Fabrik.blocks.form_xx.formElements.table___field JavaScript object to set the defaults directly.



Thanks,
Udo
 
One solutions is to set the selected property of the default option(s) to true:
Code:
var v = 44, elmnt = Fabrik.blocks.form_23.formElements.aii_registrants___groups.element;
for( var i = 0, l = elmnt.options.length; i < l; i++ ) {
    if ( elmnt.options[i].value == v ) {
        elmnt.options[i].selected = true;
    }
 
}
. . . but I was hoping for a way to set the defaults directly in the element's dialog.
 
We are in need of some funding.
More details.

Thank you.

Members online

No members online now.
Back
Top