Naomi R Mena

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Tabs in Dynamic Forms (Remembering last tab) #11666
    Naomi R Mena
    Participant

    Hi Alex,

    Thank you for response. Based on your suggestions we used the below JS code to input within dynamic forms. However, it still goes back to the first “Card” tab and does not stay on the tab we are currently using.

    Any suggestions?
    Thanks,

    function PreSaveAction(){
    var URL = location.pathname.replace(‘NewForm.aspx’,’NewForm.aspx’);
    var myTab = spjs.dffs.data.selectedTab;
    if(GetUrlKeyValue(“IsDlg”)===”1″){
    URL += “?sTab=” + myTab + “&IsDlg=1”;
    }
    $(“#aspnetForm”).attr(‘action’,location.pathname+”?Source=”+URL+”?sTab=”+myTab);
    return true;
    }

Viewing 1 post (of 1 total)