vinia
Member
Hi.
Is it possible to open another popup/modal form by clicking a button on an open popup/modal form?
I was able to create a button that opens a popup form from another form. But I again need to open another popup from this popup/modal form. I used this on onclick event for a button in the popup form but it doesn't open a new one
var repeat = this.getRepeatNum();
var idRepeat = this.form.formElements.get('tablename___elementname_' + repeat).getValue();
var urladd = '&tmpl=component&ajax=1&format=partial';
var url1 = 'index.php?option=com_fabrik&view=form&formid=93&rowid='+ idRepeat +urladd;
url = url1
Fabrik.getWindow({
id: 'popup2',
contentURL: url,
loadMethod: 'xhr',
title: 'Budget Items',
height: '50%',
width: '50%'
});
Thanks in advance!
Is it possible to open another popup/modal form by clicking a button on an open popup/modal form?
I was able to create a button that opens a popup form from another form. But I again need to open another popup from this popup/modal form. I used this on onclick event for a button in the popup form but it doesn't open a new one
var repeat = this.getRepeatNum();
var idRepeat = this.form.formElements.get('tablename___elementname_' + repeat).getValue();
var urladd = '&tmpl=component&ajax=1&format=partial';
var url1 = 'index.php?option=com_fabrik&view=form&formid=93&rowid='+ idRepeat +urladd;
url = url1
Fabrik.getWindow({
id: 'popup2',
contentURL: url,
loadMethod: 'xhr',
title: 'Budget Items',
height: '50%',
width: '50%'
});
Thanks in advance!