Hi
On my SC site in Quick Links area I created link to new calendar form.
I would like to redirect back to this form after the item is created.
Usually I use "&Source" parameter to redirec however in this case it doesn't work form me and I am not sure why.
It works for my InfoPath forms but not for this calendar form.
Therefore I decieded to use other solution with custom save button.
<input type="button" value="Form Action" name="btnFormAction" onclick="javascript:{ddwrt:GenFireServerEvent('__commit;myFunc();__redirect={http://intranet/HR/Holiday/Lists/Calendar/NewForm.aspx?RootFolder_x003D_}')}" />
This is working fine, however I also attached validation in PreSaveAction() function which is now bypassed.
I tried to add extra javascript function like:
onclick="javascript:myFunc();{ddwrt:GenFireServerEvent('__commit;myFunc();__redirect={http://intranet/HR/Holiday/Lists/Calendar/NewForm.aspx?RootFolder_x003D_}')}"
which execute my validation in "myFunc()" function. However even if I include "return false;" in "myFunc()" sharepoint executes save action anyway.
I cannot use InfoPath as this is a calendar form.
Is there a way to introduce rediraction in PreSaveAction() function? I tried window.location but it doesn't work if PreSaveAction() returns true.
Thanks in advance
Marcin