cancel
Showing results for 
Search instead for 
Did you mean: 

Redirect user to share page on custom form submit

suman_nitt
Champ in-the-making
Champ in-the-making
I created a custom form with only two fields like "Title" and "Assignees" (Users). Whenever i upload a content, using document library custom action, i launch this form and choose a Title and Assignees.

My requirement is to send an email alert to all the assignees selected and redirect the current user to a page where the uploaded content is displayed along with other custom fields.

Redirect page has been developed using webscript.

Can i pass the form data to webscript, so that webscript sends the email to all assignees and then load the page? How to pass the data to webscript on form submit? How to redirect user to the page?


Please guide if there is any example similar to my requirement, that helps me to understand and develop.
1 REPLY 1

suman_nitt
Champ in-the-making
Champ in-the-making
I used a simple javascript to redirect to another page on success callback of Ajax call to send email….

window.location.assign("another page")

is it correct? Is there any alternate way which is the correct approach? Please suggest.