Important:
This support area is for Kalium 3 users only.
Support for Kalium 4 has moved to our new platform at support.laborator.co.
If you’re using Kalium 4, please create a new account there using your email and license key. A password will be sent to you automatically.
Hello ,
I'm having trouble adding selection fields " selectbox " in modals . The same does not display the field.
http://connectprime.com.br/call/ui-modals.html
Click in "Show Me" on Responsive Modal
Thanks
Hi Rodolfo,
After initiating the modal pop up, please execute this JavaScript:
$("select.selectboxit").each(function(i, el)
This will render select boxes properly.{
var $this = $(el),
opts = {
showFirstOption: attrDefault($this, 'first-option', true),
'native': attrDefault($this, 'native', false),
defaultText: attrDefault($this, 'text', ''),
};
$this.addClass('visible');
$this.selectBoxIt(opts);
});
Hi!
Not work..
Error: 'attrDefault is not defined'
Hi Rodolfo,
Include in that code the following function so it should be something like this:
// Element Attribute Helper function attrDefault($el, data_var, default_val) { if(typeof $el.data(data_var) != 'undefined') { return $el.data(data_var); } return default_val; } $("select.selectboxit").each(function(i, el) { var $this = $(el), opts = { showFirstOption: attrDefault($this, 'first-option', true), 'native': attrDefault($this, 'native', false), defaultText: attrDefault($this, 'text', ''), }; $this.addClass('visible'); $this.selectBoxIt(opts); });And check if it works for you?
$this.selectBoxIt is not a function
Hiho..
Can you please give me the URL of this page and tell me how to access the form issue?
Hi Rodolfo,
After the modal is displayed with the fields, please call this function:
It will render selectboxit field, just don't forget to add the class "selectbox it" to select elements currently containing only "form-control" class.