digitalDave
Member
Hello I hope someone can help me out.
I have created a form "form 1" with a button to open a new form "form 2" in a pop up using the code below in form_X.js.
It works correctly, but when I click save in the pop up form "form 2", it reloads the main form "form 1".
Is there a way to stop that happening?
I have created a form "form 1" with a button to open a new form "form 2" in a pop up using the code below in form_X.js.
JavaScript:
function recordFault(el){
var strUrl = 'index.php?Itemid=&option=com_fabrik&task=form.view&formid=43';
var windowTitle ="Record Fault";
console.log(strUrl);
makeWindow(strUrl,windowTitle);
}
function makeWindow(popUrl,title){
Fabrik.getWindow(
{
id: 'some-unique-id',
contentURL: popUrl,
loadMethod: 'xhr',
title: title,
height: '100%',
width: '100%'
});
}
It works correctly, but when I click save in the pop up form "form 2", it reloads the main form "form 1".
Is there a way to stop that happening?