Skip to content
Loading...

Double clicking custom save button creates duplicates

Title

Double clicking custom save button creates duplicates

Description

Double clicking custom save button creates duplicates

Please wait...

Double clicking custom save button creates duplicates

Cause

<p> this is how custom actions are handled</p>

Resolution

<p align="left" dir="ltr"><span lang="EN">This is how the qListForm is designed to work, if you save a new item then save it again then the item shows up twice.</span></p><p align="left" dir="ltr"><span lang="EN">There is a workaround that I'd like to suggest and that is to add another custom action right after the Save custom action and that action would be GoToUrl instead of GoToSource.</span></p><p align="left" dir="ltr"><span lang="EN">We have 2 options here, once to redirect from the QLIstForm New Item to the display page of the items and second would be to redirect the page to the same page. The work flow would be:</span></p><p align="left" dir="ltr"><span lang="EN">- save an item as a result of a Save custom action</span></p><p align="left" dir="ltr"><span lang="EN">- redirect to the same page as a result of the GoToUrl and this would reload the same page cleaning up all the fields</span></p><p align="left" dir="ltr"><span lang="EN">At this point if the user hits again save the form would be empty and nothing would be save (assuming that the list has a column that must contain values).</span></p><p align="left" dir="ltr"><span lang="EN">If they chose to redirect the user to a different page that's also perfect valid scenario.</span></p>

Defect ID

<p> this is how custom actions are handled</p>

Leave a Reply