0

After clicking "Save" button in the pop-up (for adding a list item), I want to redirect to a page to show them a message "Success" or at least an alert window called "Success"?

How can it be accomplished?

Update: I added the following button to the pop-up (NewForm.aspx)

<input type="button" value="Form Action" name="btnFormAction" onclick="javascript: {ddwrt:GenFireServerEvent('__commit;__redirect={../../SitePages/success.aspx}')}" />

But I am getting the following error,

enter image description here

How can I solve it?

0

2 Answers 2

1

edit NewItem.aspx and EditItem.aspx page in SPD and replace Save button to this:

<input type="button" value="Save" name="Save" 
onclick="{ddwrt:GenFireServerEvent('__commit;__redirect={PathOfYourConfirmPage.aspx}')}  " />
1
  • I have updated my question. Please check it.
    – Gravity M
    Commented May 7, 2013 at 14:49
0

Please, check this question: List Save Button Directing to Another Page.

Good way to redirect to custom page after save is to use RedirectUrl property of SaveButton control.

4
  • It didn't work. I don't know why. I updated the redirecturl property column. But still dont work
    – Gravity M
    Commented May 6, 2013 at 18:09
  • Are you sure that your custom rendering template applied? Also, usually rendering template of new/edit form contains two save button on top and bottom.
    – Andrew
    Commented May 7, 2013 at 10:41
  • Yes. I did apply custom rendering template
    – Gravity M
    Commented May 7, 2013 at 14:41
  • In my newform.aspx page, am not able to view any button, like save or cancel.I opened list's new form in the designer.
    – samolpp2
    Commented Nov 8, 2015 at 14:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.