- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2022 02:39 AM
Hello all.
I am currently using a simple list with a custom page to display the records. That appears to work fine. On my custom form page above, I have a button that launches an spModal and uses widget-form to create a record in another table. I populate the modal form and press save. All works well with the modal. However, the record opened in the background, after the modal refreshes on save (out of the box refresh) data disappears and I get a record not found error. Is there a way to prevent the data in the background from disappearing?
Thanks in advance all.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2022 08:08 PM
Using the out of box widget-form no, as it's treating the "save" as a submit of the form and refreshing the page essentially. You could customize it and then use a custom function to create the record with an Ajax and then destroy the sp modal while still maintaining the data in the background.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-13-2022 08:08 PM
Using the out of box widget-form no, as it's treating the "save" as a submit of the form and refreshing the page essentially. You could customize it and then use a custom function to create the record with an Ajax and then destroy the sp modal while still maintaining the data in the background.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2022 04:24 AM
@Mike Rakvica1 - Hey Mike, thanks for the response and suggestion. It does indeed look like I will go with the ajax call to create the record.