I edited my display form for a cusotm list using sharepoint designer, and i added the following link, which reference the create form inside another list:-
<a href='/sites/****/Lists/Details/NewForm.aspx?Source=&RootFolder=' > + Add New Details</a>
but i am not sure how i can get the URL for the current display form (which contain the item ID
/Lists/Device/DispForm.aspx?ID=15)and add it to the
Source= parameter inside the above link? so the above link will be as follow
<a href='/sites/****/Lists/Details/NewForm.aspx?Source=/sites/****/Lists/Device/DispForm.aspx?ID=15&RootFolder=' > + Add New Details</a> so when users add the item inside the external create form, they will be redirected to the display form again?