Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

multiple queries in a URL

  • 24-04-2011 3:50pm
    #1
    Registered Users, Registered Users 2 Posts: 1,002 ✭✭✭


    Is this possible?
    My requirement is that a form button must 1) create a new item in a folder called 2011 and then 2) refresh the page to a new form in a different list.
    This is SharePoint 2007 incase anyone is familiar.


    My original url looked like this:
    var newSrcUrl = "http://" + currentserver +  "/apps/appname/Lists/list1/NewForm.aspx?source=http://" + currentserver +  "/apps/appname/Lists/list2/NewForm.aspx";
    


    However, I have introduced a folder (2011) to the list so the url now looks like this:
    http://" + currentserver + "/apps/appname/Lists/list1/NewForm.aspx?RootFolder=%2Fapps%2Fappname%2FLists%2Flist1%2F2011
    


    As a result my url needs to look like this:
    var newSrcUrl = "http://" + currentserver +  "/apps/appname/Lists/list1/NewForm.aspx?RootFolder=%2Fapps%2Fappname%2FLists%2Flist1%2F2011?source=http://"  + currentserver +  "/apps/appname/Lists/list2/NewForm.aspx?RootFolder=%2Fapps%2Fappname%2FLists%2Flist2%2F2011";
    
    This one ^ successfully creates the new item in the 2011 folder but does not redirect the page to the new form in list2. It's ignoring the second '?'


Comments

  • Registered Users, Registered Users 2 Posts: 1,002 ✭✭✭MargeS


    OK! hit me with a big stick please??
    Must be 'cause i'm holding out on eating chocolate until I get this done.

    & did the trick before the source string.


Advertisement