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

this is how custom actions are handled

Resolution

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.

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.

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:

- save an item as a result of a Save custom action

- redirect to the same page as a result of the GoToUrl and this would reload the same page cleaning up all the fields

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).

If they chose to redirect the user to a different page that's also perfect valid scenario.

Defect ID

this is how custom actions are handled

Leave a Reply