Save without closing
Posted: 24 Nov 2015
Version 3.0.5.
I am working with tabs and next button. The next button takes me to the next tab fine.
I would like to save the form without closing but it can't seem to get it to work.
I added a button to call the next tab and add this to the click
fd.sourceFormParam(window.location.href);
return true;
It does not work.
However fd.save().click(); does work but it closes the form.
My code to get next tab:
$("#fd_tabcontrol-0").tabs();
$(".nexttab").click(function() {
var active = $( "#fd_tabcontrol-0" ).tabs( "option", "active" );
//Attempt 1
//fd.save().click();
//Attempt 2
//fd.sourceFormParam(decodeURIComponent(window.location.href));
// return true;
//Attempt 3
//var uri = fd.setUrlParam(decodeURIComponent(window.location.href), 'FDRedirectWithID', 'fd_Item_Edit.aspx?ID=');
// fd.sourceFormParam(uri);
//return true;
$( "#fd_tabcontrol-0" ).tabs( "option", "active", active + 1 );
//return true;
});
I have commented out my what does not work. I have tried to add a button called "save without closing" with the code
fd.sourceFormParam(window.location.href);
return true;
added to the click method. It did not save.
Any thoughts?
I need to save when going to the next tab.
I am working with tabs and next button. The next button takes me to the next tab fine.
I would like to save the form without closing but it can't seem to get it to work.
I added a button to call the next tab and add this to the click
fd.sourceFormParam(window.location.href);
return true;
It does not work.
However fd.save().click(); does work but it closes the form.
My code to get next tab:
$("#fd_tabcontrol-0").tabs();
$(".nexttab").click(function() {
var active = $( "#fd_tabcontrol-0" ).tabs( "option", "active" );
//Attempt 1
//fd.save().click();
//Attempt 2
//fd.sourceFormParam(decodeURIComponent(window.location.href));
// return true;
//Attempt 3
//var uri = fd.setUrlParam(decodeURIComponent(window.location.href), 'FDRedirectWithID', 'fd_Item_Edit.aspx?ID=');
// fd.sourceFormParam(uri);
//return true;
$( "#fd_tabcontrol-0" ).tabs( "option", "active", active + 1 );
//return true;
});
I have commented out my what does not work. I have tried to add a button called "save without closing" with the code
fd.sourceFormParam(window.location.href);
return true;
added to the click method. It did not save.
Any thoughts?
I need to save when going to the next tab.