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?

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}')}  " />
  • I have updated my question. Please check it. – Gravity M May 7 '13 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.

  • It didn't work. I don't know why. I updated the redirecturl property column. But still dont work – Gravity M May 6 '13 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 May 7 '13 at 10:41
  • Yes. I did apply custom rendering template – Gravity M May 7 '13 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. – userAZLogicApps Nov 8 '15 at 14:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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