I have TWO URLs I created in lists so users can start actions from a dashboard - that opens the InfoPath forms, however, when they close - they go back to the lists and not the dashboard.
I have used the &Source item before on a button to open form but never a calculated column.
Link one - ="<a href='https://navsea.navy.deps.mil/hq/10a/cois/classreg2/Lists/Registrations/EditForm.aspx?ID="&StaticID&"&Source=https://navsea.navy.deps.mil/hq/10a/cois/classreg2/SitePages/Home.aspx' style='color:red'>UnRegister</a>"
This one is working.
Link two - =IF(Closed=TRUE,"Closed for registration",IF(RemainingSeats>0,"<a href='https://navsea.navy.deps.mil/hq/10a/cois/classreg2/Lists/Registrations/Item/newifs.aspx?List=13203472%2D6849%2D4887%2D92cc%2D315fe1485564&RootFolder=&Web=50d1f362%2D2d21%2D4982%2D8336%2D9e288a8c873d&meeting_id="&StaticID&"' onclick='OpenLandLRegistration("&StaticID&")'>Register</a>","Class is Full"))
I attempted the same thing with this one and it broke.
I've attempted to add the &Source URL but I am either putting it in the wrong place or its not doable - the second item is breaking or are not opening to the edit form that I want it to.
Any help on WHERE it should go would be appreciated...thank you in advance.
I also tried adding this script to a script editor webpart and it didn't work either -
<script>
function pageLoad()
{
setTimeout(setEventHandler,3000);
}
function setEventHandler()
{
var btnSend = document.getElementById("ctl00_SPWebPartManager1_g_05feacdc_f33d_4745_9911_be9cad71a70c_FormControl0_V1_I1_B4");
btnSend.onmouseup = function(){Button.OnClick(this, event); window.location='#';};
}
</script>